From 0e60bd20d0fc388319d2e60202ffd3f2fd650685 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 15 Mar 2017 15:01:57 +0100 Subject: log debug to console only --- api.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'api.py') diff --git a/api.py b/api.py index 484fb46..cec9dc3 100644 --- a/api.py +++ b/api.py @@ -87,17 +87,7 @@ async def startup(): if __name__ == "__main__": - logging.basicConfig( - filename=os.path.realpath( - os.path.join(os.getcwd(), - os.path.dirname(__file__))) + - "/logs/apigrabber.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()) -- cgit v1.3.1