summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.py12
-rw-r--r--logs/.gitignore1
2 files changed, 1 insertions, 12 deletions
diff --git a/api.py b/api.py
index b833ef8..9376741 100644
--- a/api.py
+++ b/api.py
@@ -232,17 +232,7 @@ async def startup():
await worker.setup()
await worker.start(batchlimit=50)
-logging.basicConfig(
- filename=os.path.realpath(
- os.path.join(os.getcwd(),
- os.path.dirname(__file__))) +
- "/logs/processor.log",
- filemode="a",
- level=logging.DEBUG
-)
-console = logging.StreamHandler()
-console.setLevel(logging.WARNING)
-logging.getLogger("").addHandler(console)
+logging.basicConfig(level=logging.DEBUG)
loop = asyncio.get_event_loop()
loop.run_until_complete(startup())
diff --git a/logs/.gitignore b/logs/.gitignore
deleted file mode 100644
index 397b4a7..0000000
--- a/logs/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.log