File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -600,9 +600,16 @@ async def debug_logfile(self, quiet_debug: bool) -> None:
600
600
h .setLevel (screen_level )
601
601
# Superdataset must exist before creating anything in the directory:
602
602
await self .ensure_superdataset ()
603
- logdir = self .config .dandiset_root / ".git" / "dandi" / "backups2datalad"
604
- logdir .mkdir (exist_ok = True , parents = True )
605
603
ts = datetime .now (timezone .utc )
604
+ logdir = (
605
+ self .config .dandiset_root
606
+ / ".git"
607
+ / "dandi"
608
+ / "backups2datalad"
609
+ / f"{ ts :%Y} "
610
+ / f"{ ts :%m} "
611
+ )
612
+ logdir .mkdir (exist_ok = True , parents = True )
606
613
filename = f"{ ts :%Y.%m.%d.%H.%M.%SZ} .log"
607
614
self .logfile = logdir / filename
608
615
handler = logging .FileHandler (self .logfile , encoding = "utf-8" )
You can’t perform that action at this time.
0 commit comments