From 6055d22dee684b3d3daffdef2e189f909fc817a0 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 26 Sep 2017 15:13:48 -0700 Subject: [PATCH] fixes grpc casting for string log levels --- src/Logging/Connection/Grpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logging/Connection/Grpc.php b/src/Logging/Connection/Grpc.php index ea609408eefd..05ff40901054 100644 --- a/src/Logging/Connection/Grpc.php +++ b/src/Logging/Connection/Grpc.php @@ -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);