summaryrefslogtreecommitdiff
path: root/Omni/Log.py
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Log.py')
-rw-r--r--Omni/Log.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Omni/Log.py b/Omni/Log.py
index e644a1a..8d61139 100644
--- a/Omni/Log.py
+++ b/Omni/Log.py
@@ -14,7 +14,7 @@ class LowerFormatter(logging.Formatter):
def setup(level: int = logging.INFO) -> logging.Logger:
- """Run this in your __main__ function."""
+ """Run this in your `main()` function."""
logging.basicConfig(
level=level,
format="%(levelname)s: %(name)s: %(message)s",
@@ -30,6 +30,7 @@ def setup(level: int = logging.INFO) -> logging.Logger:
return logger
-if __name__ == "__main__":
+def main() -> None:
+ """Entrypoint to test that this kinda works."""
setup()
logging.debug("i am doing testing")