-
Notifications
You must be signed in to change notification settings - Fork 137
Create timestamped subdirectories for logs #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
src/python/benchUtil.py
Outdated
|
|
||
| # Create timestamped log subdirectory to avoid conflicts between runs | ||
| now = datetime.datetime.now() | ||
| timeStamp = "%04d.%02d.%02d.%02d.%02d.%02d" % (now.year, now.month, now.day, now.hour, now.minute, now.second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I asked Claude to change this fragment to use strftime instead:
now = datetime.datetime.now()
timeStamp = now.strftime("%Y.%m.%d.%H.%M.%S")
https://claude.ai/share/a8042a55-733f-4c9e-91f3-b8c2d71c3bad
A bit more compact maybe :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure let me update this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in my latest commit, please check.
mikemccand
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good first step -- we can baby-step any other log files? Need not be draft?
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
jainankitk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @prudhvigodithi for fixing this annoying issue!
|
@prudhvigodithi - You might need to run |
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
Thanks just pushed with the formats. |
Attempt to solve #381
(Initially coming from apache/lucene#15383)