Skip to content

Commit 36abf9d

Browse files
committed
Support :warning severity level for upcoming changes in Elixir
1 parent e15b056 commit 36abf9d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/logger_json/formatters/google_cloud_logger.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ defmodule LoggerJSON.Formatters.GoogleCloudLogger do
1010

1111
# Severity levels can be found in Google Cloud Logger docs:
1212
# https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
13-
@severity_levels [{:debug, "DEBUG"}, {:info, "INFO"}, {:warn, "WARNING"}, {:error, "ERROR"}]
13+
@severity_levels [
14+
{:debug, "DEBUG"},
15+
{:info, "INFO"},
16+
{:warning, "WARNING"},
17+
{:warn, "WARNING"},
18+
{:error, "ERROR"}
19+
]
1420

1521
@doc """
1622
Builds structured payload which is mapped to Google Cloud Logger

0 commit comments

Comments
 (0)