mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Plugins use parent loggers
This PR fixes various instances of plugins being launched without using the parent loggers. This meant that logs would not all go to the same output, break formatting etc.
This commit is contained in:
@@ -95,7 +95,7 @@ func NewExecutorWithIsolation(logger hclog.Logger) Executor {
|
||||
|
||||
// Launch creates a new container in libcontainer and starts a new process with it
|
||||
func (l *LibcontainerExecutor) Launch(command *ExecCommand) (*ProcessState, error) {
|
||||
l.logger.Info("launching command", "command", command.Cmd, "args", strings.Join(command.Args, " "))
|
||||
l.logger.Debug("launching command", "command", command.Cmd, "args", strings.Join(command.Args, " "))
|
||||
// Find the nomad executable to launch the executor process with
|
||||
bin, err := discover.NomadExecutable()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user