-
Notifications
You must be signed in to change notification settings - Fork 6
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
Move logs to blob from Cosmos #159
Conversation
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.
Few minor nits
@@ -455,7 +424,7 @@ func getLogsForTask(ctx context.Context, fileClient *batch.FileClient, t *batch. | |||
sb := strings.Builder{} | |||
//Log the details from the running task | |||
logs, err := getLogFileContent(ctx, t, fileClient, jobID, "stdout.txt") | |||
sb.WriteString("\n\n ------ Batch logs: stdout ------ \n\n") //nolint: errcheck | |||
sb.WriteString("\n\n ------ [Debug] Batch logs: stdout ------ \n\n") //nolint: errcheck |
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.
The [DEBUG]
heading does not necessarily match the error level (warnings are used) which might be confusing.
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.
Done
sb.WriteString("\n\n ------ Commit logs ------ \n\n") //nolint: errcheck | ||
if err != nil { | ||
log.WithError(err).WithField("task", *t).Warningf("failed to get %v from task", "stout") | ||
sb.WriteString("failed to get %v from task: stdout") //nolint: errcheck |
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.
What interpolates %v here?
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.
Done
sb.WriteString("\n\n ------ Preparer logs ------ \n\n") //nolint: errcheck | ||
if err != nil { | ||
log.WithError(err).WithField("task", *t).Warningf("failed to get %v from task", "stout") | ||
sb.WriteString("failed to get %v from task: stdout") //nolint: errcheck |
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.
%v issue
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.
Done
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.
LGTM
#130