Skip to content

Commit

Permalink
Log as errors
Browse files Browse the repository at this point in the history
Co-authored-by: Alessio Placitelli <alessio.placitelli@gmail.com>
  • Loading branch information
badboy and Dexterp37 committed Jul 22, 2020
1 parent 41cd294 commit ca7d46f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion glean-core/csharp/Glean/Glean.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion glean-core/ios/Glean/Glean.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion glean-core/python/glean/glean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ca7d46f

Please sign in to comment.