1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

LineFormatter if configured to use short attachment

This commit is contained in:
Daniel Gimenes
2016-02-03 21:23:46 -02:00
committed by Jordi Boggiano
parent 25131bb5f6
commit 3521455e51

View File

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