Skip to content

Commit 9bbb96c

Browse files
committed
Fix traditional logging calls
1 parent 28fde8c commit 9bbb96c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/classes/app.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -360,5 +360,6 @@ def onLogTheEnd():
360360
log.info(time.asctime().center(48))
361361
log.info("=" * 48)
362362
except Exception:
363-
from logging import log
364-
log.debug('Failed to write session ended log')
363+
import logging
364+
log = logging.getLogger(".")
365+
log.debug('Failed to write session ended log', exc_info=1)

src/tests/query_tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ def main():
336336
try:
337337
app = OpenShotApp(sys.argv, mode="unittest")
338338
except Exception:
339-
from logging import logger
340-
log = logger.getlog(".")
339+
import logging
340+
log = logging.getLogger(".")
341341
log.error("Failed to instantiate OpenShotApp", exc_info=1)
342342
sys.exit()
343343
unittest.main()

0 commit comments

Comments
 (0)