Skip to content

Commit

Permalink
Merge pull request #1445 from dandi/split-logfile-names
Browse files Browse the repository at this point in the history
Separate datetime components in logfile names with punctuation
  • Loading branch information
yarikoptic committed May 24, 2024
2 parents f9eb87c + a847a9b commit 3f0318c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def main(ctx, log_level, pdb=False):

logdir = platformdirs.user_log_dir("dandi-cli", "dandi")
logfile = os.path.join(
logdir, f"{datetime.now(timezone.utc):%Y%m%d%H%M%SZ}-{os.getpid()}.log"
logdir, f"{datetime.now(timezone.utc):%Y.%m.%d-%H.%M.%SZ}-{os.getpid()}.log"
)
os.makedirs(logdir, exist_ok=True)
handler = logging.FileHandler(logfile, encoding="utf-8")
Expand Down

0 comments on commit 3f0318c

Please sign in to comment.