Skip to content

Commit

Permalink
Remove log directory creation (#391)
Browse files Browse the repository at this point in the history
* Remove log directory creation

* Remove unused import
  • Loading branch information
platipo authored Oct 6, 2020
1 parent 8815fae commit 7653a62
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
import os
import random
import string
import sys
Expand Down Expand Up @@ -137,9 +136,6 @@ def standardize_response(

def setup_logger(name, level=logging.INFO):
"""Function setup as many loggers as you want"""
if not os.path.exists('log'):
os.makedirs('log') # pragma: no cover

formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(formatter)
Expand Down

0 comments on commit 7653a62

Please sign in to comment.