Parcourir la source

Merge pull request #1 from andrioli/notify-parameter-fix

Using the correct value for parameter 'notify'
Eric Salter il y a 10 ans
Parent
commit
e904f91ea9
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/Monolog/Handler/HipChatHandler.php

+ 3 - 1
src/Monolog/Handler/HipChatHandler.php

@@ -135,7 +135,9 @@ class HipChatHandler extends SocketHandler
     private function buildContent($record)
     {
         $dataArray = array(
-            'notify' => $this->notify,
+            'notify' => $this->version == self::API_V1 ?
+                ($this->notify ? 1 : 0) :
+                ($this->notify ? 'true' : 'false'),
             'message' => $record['formatted'],
             'message_format' => $this->format,
             'color' => $this->getAlertColor($record['level']),