about summary refs log tree commit diff
path: root/universe/ac_types/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'universe/ac_types/log.py')
-rw-r--r--universe/ac_types/log.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/universe/ac_types/log.py b/universe/ac_types/log.py
new file mode 100644
index 000000000000..797e2f719942
--- /dev/null
+++ b/universe/ac_types/log.py
@@ -0,0 +1,9 @@
+enable = False
+
+
+def warn(x):
+    """Print `x` as a warning."""
+    if enable:
+        print('[Warning]: {}'.format(x))
+    else:
+        return None