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

Dashboard: reduce over-detailed logs #683

Merged
merged 1 commit into from
Nov 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/dashboard/server/api/services/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Cluster extends Service {
const response = await this.fetch('/GetJobDetail?' + params)
this.context.assert(response.ok, 502)
const job = await response.json()
this.context.log.info({ job }, 'Got job')
this.context.log.info('Got job %s', job['jobName'])
return job
}

Expand Down Expand Up @@ -147,7 +147,7 @@ class Cluster extends Service {
const response = await this.fetch('/jobs/priorities')
this.context.assert(response.ok, 502)
const data = await response.json()
this.context.log.info({ data }, 'Got job priorities')
this.context.log.info('Got priority of %d jobs', Object.keys(data).length)
return data
}

Expand All @@ -168,7 +168,7 @@ class Cluster extends Service {
body: JSON.stringify(body)
})
const text = await response.text()
this.context.log.info({ text }, 'Set priority %d for job "%s"', priority, jobId)
this.context.log.info({ text }, 'Set priority %d of job "%s"', priority, jobId)
this.context.assert(response.ok, 502)
return text
}
Expand Down Expand Up @@ -202,7 +202,6 @@ class Cluster extends Service {
const response = await this.fetch('/GetVC?' + params)
this.context.assert(response.ok, 502)
const data = await response.json()
this.context.log.info(data, 'Got VC')
this.context.assert(data != null, 404, 'Team is not found')
return data
}
Expand Down