Skip to content

Commit cbbcae6

Browse files
Merge pull request #171 from ISISComputingGroup/rerpha-patch-1
codeql warning fix
2 parents bc95ca8 + f63dce6 commit cbbcae6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ibex_bluesky_core/log.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import os
1010
import sys
1111
from functools import cache
12-
from logging import Formatter
1312
from logging.handlers import TimedRotatingFileHandler
1413

1514
__all__ = ["file_handler", "set_bluesky_log_levels", "setup_logging"]
@@ -32,7 +31,7 @@ def file_handler() -> TimedRotatingFileHandler:
3231
handler = TimedRotatingFileHandler(os.path.join(log_location, "bluesky.log"), "midnight")
3332

3433
handler.setFormatter(
35-
Formatter(
34+
logging.Formatter(
3635
"%(asctime)s (%(process)d) %(name)s %(filename)s "
3736
"[line:%(lineno)d] %(levelname)s %(message)s"
3837
),

0 commit comments

Comments
 (0)