mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #745] SlackHandler ignores includeStacktraces #280
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#280
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 @websirnik on GitHub (Mar 16, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/745
I'm using MonologBundle to include stacktraces in logs. It works for StreamHandler, but not for Slack.
@Seldaek commented on GitHub (Apr 2, 2016):
Yeah, the problem seems to be SlackHandler uses LineFormatter::stringify which doesn't handle exceptions, and it also doesn't use this->getFormatter() like the include_stacktrace does.. lots of small problems which make it not so easy to fix, but it sure isn't impossible :)
@LeniM commented on GitHub (Aug 11, 2016):
I think you can do it with a formater.
In my case I just used a global handler that does $e->__toString() before sending it to slack. works fine
@gmponos commented on GitHub (Mar 18, 2018):
Hi @websirnik does the problem still occur?
Can you check this #1127 and tell me if this happens also for you?
@Seldaek commented on GitHub (Jun 18, 2018):
Closing as no activity here in a while.