summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-15 15:02:12 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-15 15:02:12 +0100
commite0cf6bfb6bfd824da141131922e9688caba5eb09 (patch)
treea87e62a365ecb004cb785360084262eaf21c20b0
parent1a7f0eb91529148b08eec58ce9cbebf514a9af25 (diff)
downloadcompiler-e0cf6bfb6bfd824da141131922e9688caba5eb09.tar.gz
compiler-e0cf6bfb6bfd824da141131922e9688caba5eb09.zip
log debug to console only
-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 873e8be..b75beb9 100644
--- a/api.py
+++ b/api.py
@@ -87,17 +87,7 @@ async def startup():
await worker.start(batchlimit=750)
-logging.basicConfig(
- filename=os.path.realpath(
- os.path.join(os.getcwd(),
- os.path.dirname(__file__))) +
- "/logs/compiler.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