Skip to content

Add seconds to log timestamps to avoid log name clashes. #2280

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

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki force-pushed the fix-tests-logs-overwritten branch from 0338d60 to 5d8a57b Compare April 20, 2017 09:23
val date = new Date
val df0 = new SimpleDateFormat("yyyy-MM-dd")
val df1 = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss")
val folder = s"../testlogs/tests-${df0.format(date)}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • if tests run in parallel, you can have two tests that start at the same second.
  • I would prefer to have names of the log-files that are predictable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intended as a quick fix. There are many possible improvements that should be done on these logs.

@felixmulder felixmulder merged commit d514638 into scala:master Apr 20, 2017
@felixmulder
Copy link
Contributor

I agree with Nicolas, in the end this is an improvement :)

@allanrenucci allanrenucci deleted the fix-tests-logs-overwritten branch December 14, 2017 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants