Skip to content

Commit 3725aee

Browse files
committed
fix to satisfy pyright
1 parent 65ec8b8 commit 3725aee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpdispatcher/dlog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
dlog = logging.getLogger("dpdispatcher")
77
dlog.propagate = False
88
dlog.setLevel(logging.INFO)
9+
cwd_logfile_path = os.path.join(os.getcwd(), "dpdispatcher.log")
10+
dlogf = logging.FileHandler(cwd_logfile_path, delay=True)
911
try:
10-
cwd_logfile_path = os.path.join(os.getcwd(), "dpdispatcher.log")
11-
dlogf = logging.FileHandler(cwd_logfile_path, delay=True)
1212
dlog.addHandler(dlogf)
1313
dlog.info(f"LOG INIT:dpdispatcher log direct to {cwd_logfile_path}")
1414
except PermissionError:

0 commit comments

Comments
 (0)