-
Notifications
You must be signed in to change notification settings - Fork 188
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
Truncate beginning of S3 log filenames #635
Conversation
@@ -106,3 +106,6 @@ Handlebars.registerHelper 'usernameFromEmail', (email) -> | |||
|
|||
Handlebars.registerHelper 'substituteTaskId', (value, taskId) -> | |||
value.replace('$TASK_ID', taskId) | |||
|
|||
Handlebars.registerHelper 'trimS3File', (filename) -> | |||
return '...' + filename.substring(filename.indexOf("service.log")); |
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.
unfortunately the log name will not always be service.log
. That is the default for the SingularityExecutor, but it could be anything for s3 logs. I might go more on the route of taking the taskId out of the name (since we are already on the task page) to make a name that is more readable and shorter without having to truncate
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 was afraid that was the case. This model doesn't include the task id but I should be able to add it in.
This looks good but to be fully complete, we should surface the |
4d61622
to
0402529
Compare
Truncate beginning of S3 log filenames
Truncate the beginning of s3 log files to enable reading of useful information.