diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-15 15:03:11 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-15 15:03:11 +0100 |
| commit | 1db94f8d0a1779c784f3c9a3f6c3147f60226f7b (patch) | |
| tree | ec324b5b823d63ff3ee737871b001b78c0f2846d | |
| parent | 1d03692ad017e9a34eaed250023259ba83583eac (diff) | |
| download | shrinker-1db94f8d0a1779c784f3c9a3f6c3147f60226f7b.tar.gz shrinker-1db94f8d0a1779c784f3c9a3f6c3147f60226f7b.zip | |
log debug to console only
| -rw-r--r-- | api.py | 12 | ||||
| -rw-r--r-- | logs/.gitignore | 1 |
2 files changed, 1 insertions, 12 deletions
@@ -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 |
