1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 14:46:46 +02:00

LineFormatter if configured to use short attachment

This commit is contained in:
Daniel Gimenes
2016-02-03 21:23:46 -02:00
parent f656375b86
commit e619223b4a

View File

@@ -96,7 +96,8 @@ class SlackHandler extends SocketHandler
$this->useAttachment = $useAttachment; $this->useAttachment = $useAttachment;
$this->useShortAttachment = $useShortAttachment; $this->useShortAttachment = $useShortAttachment;
$this->includeContextAndExtra = $includeContextAndExtra; $this->includeContextAndExtra = $includeContextAndExtra;
if ($this->includeContextAndExtra) {
if ($this->includeContextAndExtra && $this->useShortAttachment) {
$this->lineFormatter = new LineFormatter; $this->lineFormatter = new LineFormatter;
} }
} }