Bladeren bron

Always send the "from" name in the hipchat handler

Jannik Zschiesche 10 jaren geleden
bovenliggende
commit
45d243f0ab
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/Monolog/Handler/HipChatHandler.php

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

@@ -141,12 +141,12 @@ class HipChatHandler extends SocketHandler
             'message' => $record['formatted'],
             'message' => $record['formatted'],
             'message_format' => $this->format,
             'message_format' => $this->format,
             'color' => $this->getAlertColor($record['level']),
             'color' => $this->getAlertColor($record['level']),
+            'from' => $this->name,
         );
         );
 
 
         // if we are using the legacy API then we need to send some additional information
         // if we are using the legacy API then we need to send some additional information
         if ($this->version == self::API_V1) {
         if ($this->version == self::API_V1) {
             $dataArray['room_id'] = $this->room;
             $dataArray['room_id'] = $this->room;
-            $dataArray['from'] = $this->name;
         }
         }
 
 
         return http_build_query($dataArray);
         return http_build_query($dataArray);