Skip to content
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

Merged
merged 3 commits into from
Jul 26, 2018
Merged

Move logs to blob from Cosmos #159

merged 3 commits into from
Jul 26, 2018

Conversation

lawrencegripper
Copy link
Owner

Copy link
Collaborator

@jjcollinge jjcollinge left a 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
Copy link
Collaborator

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.

Copy link
Owner Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

What interpolates %v here?

Copy link
Owner Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

%v issue

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@jjcollinge jjcollinge left a comment

Choose a reason for hiding this comment

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

LGTM

@lawrencegripper lawrencegripper merged commit 9557c12 into master Jul 26, 2018
@jjcollinge jjcollinge deleted the lg/tweak130 branch July 26, 2018 13:26
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.

2 participants