Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmood Ali committed Dec 13, 2019
1 parent 9438544 commit ff05434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/allocrunner/taskrunner/logmon_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (h *logmonHook) Prestart(ctx context.Context,
req *interfaces.TaskPrestartRequest, resp *interfaces.TaskPrestartResponse) error {

if h.isLoggingDisabled() {
h.logger.Info("logging is disabled by driver")
h.logger.Debug("logging is disabled by driver")
return nil
}

Expand Down
2 changes: 2 additions & 0 deletions drivers/docker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ var (
hclspec.NewLiteral(`"gcr.io/google_containers/pause-amd64:3.0"`),
),

// disable_log_colleciton indicates whether docker driver should collect logs of docker
// task containers. If true, nomad doesn't start docker_logger/logmon processes
"disable_log_collection": hclspec.NewAttr("disable_log_collection", "bool", false),
})

Expand Down

0 comments on commit ff05434

Please sign in to comment.