mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #1293] Duplication of Messages in Log #532
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#532
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 @crayner on GitHub (Feb 24, 2019).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1293
I have been experiencing a duplication of messages in the log. This may be because of a poor setup structure on my part, and eventually I will find some time to debug the setup structure. In the meantime, I worked out that if I check the handler being pushed to the logger, and reject if already set, my duplication issue disappears.
Hope this helps. The PR is #1292
@Seldaek commented on GitHub (Jun 30, 2019):
Closing as per https://github.com/Seldaek/monolog/pull/1292#issuecomment-507048805 - this can easily done by extending the Logger class if you really want though.