From ca7d46f006a85a1d2a81b2d25c68108fa6c85ce0 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Wed, 22 Jul 2020 10:22:02 +0200 Subject: [PATCH] Log as errors Co-authored-by: Alessio Placitelli --- .../android/src/main/java/mozilla/telemetry/glean/Glean.kt | 2 +- glean-core/csharp/Glean/Glean.cs | 2 +- glean-core/ios/Glean/Glean.swift | 2 +- glean-core/python/glean/glean.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glean-core/android/src/main/java/mozilla/telemetry/glean/Glean.kt b/glean-core/android/src/main/java/mozilla/telemetry/glean/Glean.kt index 28362344b3..61cde8a214 100644 --- a/glean-core/android/src/main/java/mozilla/telemetry/glean/Glean.kt +++ b/glean-core/android/src/main/java/mozilla/telemetry/glean/Glean.kt @@ -296,7 +296,7 @@ open class GleanInternalAPI internal constructor () { Pass the correct state into `Glean.initialize()`. See documentation at https://mozilla.github.io/glean/book/user/general-api.html#initializing-the-glean-sdk """.trimIndent() - Log.w(LOG_TAG, msg) + Log.e(LOG_TAG, msg) return } // Changing upload enabled always happens asynchronous. diff --git a/glean-core/csharp/Glean/Glean.cs b/glean-core/csharp/Glean/Glean.cs index 9b32a5111a..2c005c086f 100644 --- a/glean-core/csharp/Glean/Glean.cs +++ b/glean-core/csharp/Glean/Glean.cs @@ -266,7 +266,7 @@ public void SetUploadEnabled(bool enabled) string msg = "Changing upload enabled before Glean is initialized is not supported.\n" + "Pass the correct state into `Glean.initialize()`.\n" + "See documentation at https://mozilla.github.io/glean/book/user/general-api.html#initializing-the-glean-sdk"; - Log.Warning(msg); + Log.Error(msg); return; } diff --git a/glean-core/ios/Glean/Glean.swift b/glean-core/ios/Glean/Glean.swift index d84dc98655..0d38390a2b 100644 --- a/glean-core/ios/Glean/Glean.swift +++ b/glean-core/ios/Glean/Glean.swift @@ -229,7 +229,7 @@ public class Glean { Pass the correct state into `Glean.initialize()`. See documentation at https://mozilla.github.io/glean/book/user/general-api.html#initializing-the-glean-sdk """ - self.logger.warn(msg) + self.logger.error(msg) return } diff --git a/glean-core/python/glean/glean.py b/glean-core/python/glean/glean.py index c3001c2f4e..d7a19e1db6 100644 --- a/glean-core/python/glean/glean.py +++ b/glean-core/python/glean/glean.py @@ -318,7 +318,7 @@ def set_upload_enabled(cls, enabled: bool) -> None: See documentation at https://mozilla.github.io/glean/book/user/general-api.html#initializing-the-glean-sdk """ - log.warning(inspect.cleandoc(msg)) + log.error(inspect.cleandoc(msg)) return # Changing upload enabled always happens asynchronous.