aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/platform/logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/platform/logging.py')
-rw-r--r--tensorflow/python/platform/logging.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/python/platform/logging.py b/tensorflow/python/platform/logging.py
new file mode 100644
index 0000000000..b6d2e53dd4
--- /dev/null
+++ b/tensorflow/python/platform/logging.py
@@ -0,0 +1,10 @@
+"""Switch between depending on pyglib.logging or regular logging."""
+# pylint: disable=unused-import
+# pylint: disable=g-import-not-at-top
+# pylint: disable=wildcard-import
+import tensorflow.python.platform
+import control_imports
+if control_imports.USE_OSS and control_imports.OSS_LOGGING:
+ from tensorflow.python.platform.default._logging import *
+else:
+ from tensorflow.python.platform.google._logging import *