Skip to content

Commit 449b601

Browse files
committed
fix mantis logger bug?
1 parent aaf6538 commit 449b601

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shrimpy/mantis/mantis_logger.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def configure_mantis_logger(
4545
log_dir = Path(save_dir) / 'logs'
4646
log_dir.mkdir(parents=True, exist_ok=True)
4747

48-
# Generate log filename with timestamp
49-
timestamp = datetime.now().strftime('%Y%m%dT%H%M%S')
48+
# Generate log filename with timestamp (including microseconds for uniqueness)
49+
timestamp = datetime.now().strftime('%Y%m%dT%H%M%S_%f')
5050
log_filename = f'{acquisition_name}_log_{timestamp}.txt'
5151
log_path = log_dir / log_filename
5252

@@ -112,8 +112,8 @@ def log_conda_environment(
112112
log_dir = Path(log_dir)
113113
log_dir.mkdir(parents=True, exist_ok=True)
114114

115-
# Generate log filename with timestamp
116-
timestamp = datetime.now().strftime('%Y%m%dT%H%M%S')
115+
# Generate log filename with timestamp (including microseconds for uniqueness)
116+
timestamp = datetime.now().strftime('%Y%m%dT%H%M%S_%f')
117117
log_filename = f'conda_environment_log_{timestamp}.txt'
118118
log_path = log_dir / log_filename
119119

0 commit comments

Comments
 (0)