From 1db94f8d0a1779c784f3c9a3f6c3147f60226f7b Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 15 Mar 2017 15:03:11 +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 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()) -- cgit v1.3.1