How to supress Abseil logging before absl::InitializeLog is called ? #1700
Unanswered
janpfeifer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Go program that dynamically loads (
dlopen
) a C++ program (an OpenXLA's PJRT plugin).This C++ plugin polutes the stderr with irrelevant log messages (from my program users point of view).
The logging is prefixed with the warning:
"""
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
... (irrelevant logging to stderr) ...
"""
How can one disable this behavior ? Is there an environment variable that can be set such that
absl::logging
will supress logging untilabsl::InitializeLog()
is called ?Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions