Skip to content

Commit

Permalink
Update api_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimaHoarder committed Dec 1, 2020
1 parent acc8aa5 commit 42feb49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apis/api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
def setup_logger(name, log_file, level=logging.INFO):
"""To setup as many loggers as you want"""
log_filename = ".logs/"+log_file
os.makedirs(os.path.dirname(log_filename), exist_ok=True)
log_path = os.path.dirname(log_filename)
os.makedirs(log_path, exist_ok=True)
formatter = logging.Formatter(
'%(asctime)s %(levelname)s %(name)s %(message)s')

Expand Down

0 comments on commit 42feb49

Please sign in to comment.