mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #36] WebProcessor in command line #7
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maxailloud on GitHub (Jul 6, 2011).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/36
I don't know if it's a bug or not so i'll submit it anyway.
I just configured my application to log in a file when in 'dev' environment with a WebProcessor associated.
It works fine in a navigator, but when i launched a command in the command line i get this error:
Notice: Undefined index: REQUEST_URI in /home/mailloud/workspace/referentiel/vendor/monolog/src/Monolog/Processor/WebProcessor.php line 46
It's normal that 'REQUEST_URI' doesn't exist while w're not in a http process, and so no uri.
I think when call in command line this kind of processor should not work, and the fact that the command is launched in 'dev' mode should not change that.
With the option 'no-debug' the command works without problem bu at this time no log, not wanted if log are configured.
@Seldaek commented on GitHub (Jul 6, 2011):
I don't think the WebProcessor is too useful in dev environment, but it still shouldn't crash in CLI, so it's fixed.