Skip to content

Commit

Permalink
fixes grpc casting for string log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Sep 26, 2017
1 parent fa7977f commit 6055d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logging/Connection/Grpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private function buildEntry(array $entry)
}

if (isset($entry['severity']) && is_string($entry['severity'])) {
$entry['severity'] = array_flip(Logger::getLogLevelMap())[$entry['severity']];
$entry['severity'] = array_flip(Logger::getLogLevelMap())[strtoupper($entry['severity'])];
}

return $this->serializer->decodeMessage(new LogEntry(), $entry);
Expand Down

0 comments on commit 6055d22

Please sign in to comment.