Skip to content

Commit

Permalink
Fix debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Guardian committed Jul 7, 2023
1 parent 7adf5b4 commit 592ca25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/events/post_workflow_hooks_command_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ func (w *DefaultPostWorkflowHooksCommandRunner) runHooks(
ctx.HookID = uuid.NewString()
shell := hook.Shell
if shell == "" {
ctx.Log.Debugf("Setting shell to default: %q", shell)
ctx.Log.Debug("Setting shell to default: %q", shell)
shell = "sh"
}
shellArgs := hook.ShellArgs
if shellArgs == "" {
ctx.Log.Debugf("Setting shellArgs to default: %q", shellArgs)
ctx.Log.Debug("Setting shellArgs to default: %q", shellArgs)
shellArgs = "-c"
}
url, err := w.Router.GenerateProjectWorkflowHookURL(ctx.HookID)
Expand Down
4 changes: 2 additions & 2 deletions server/events/pre_workflow_hooks_command_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ func (w *DefaultPreWorkflowHooksCommandRunner) runHooks(
ctx.HookID = uuid.NewString()
shell := hook.Shell
if shell == "" {
ctx.Log.Debugf("Setting shell to default: %q", shell)
ctx.Log.Debug("Setting shell to default: %q", shell)
shell = "sh"
}
shellArgs := hook.ShellArgs
if shellArgs == "" {
ctx.Log.Debugf("Setting shellArgs to default: %q", shellArgs)
ctx.Log.Debug("Setting shellArgs to default: %q", shellArgs)
shellArgs = "-c"
}
url, err := w.Router.GenerateProjectWorkflowHookURL(ctx.HookID)
Expand Down

0 comments on commit 592ca25

Please sign in to comment.