Skip to content

Commit

Permalink
feat(api): provide a way to override log settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 3, 2023
1 parent c837830 commit 406e0f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/onnx_web/logging.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from logging import getLogger
from logging.config import dictConfig
from os import path
from os import environ, path
from yaml import safe_load

logging_path = './logging.yaml'
logging_path = environ.get('ONNX_WEB_LOGGING_PATH', './logging.yaml')

# setup logging config before anything else loads
try:
Expand Down

0 comments on commit 406e0f0

Please sign in to comment.