Skip to content

Commit

Permalink
Update util.py (#33)
Browse files Browse the repository at this point in the history
Removes unused Path and wget. Adds level as param with DEBUG default value.
  • Loading branch information
MeTaNoV authored Dec 13, 2021
1 parent a8b546b commit 3cbcd69
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ariadne/util.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import logging
from pathlib import Path

import wget


def setup_logging():
def setup_logging(level=logging.DEBUG):
log_fmt = "%(process)d-%(thread)d %(asctime)s - %(name)s - %(levelname)s - %(message)s"
logging.basicConfig(level=logging.DEBUG, format=log_fmt)
logging.basicConfig(level=level, format=log_fmt)

filelock_logger = logging.getLogger("filelock")
filelock_logger.setLevel(logging.WARNING)

0 comments on commit 3cbcd69

Please sign in to comment.