Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
e5d04f9a
Commit
e5d04f9a
authored
Oct 22, 2017
by
Toby Allen
Committed by
GitHub
Oct 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change log output for startup and shutdown (#1932)
Changes the log output of on startup
parent
59a8ada4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
onevent/hook/hook.go
onevent/hook/hook.go
+2
-2
No files found.
onevent/hook/hook.go
View file @
e5d04f9a
...
...
@@ -28,10 +28,10 @@ func (cfg *Config) Hook(event caddy.EventName, info interface{}) error {
cmd
.
Stdout
=
os
.
Stdout
cmd
.
Stderr
=
os
.
Stderr
if
nonblock
{
log
.
Printf
(
"[INFO] Nonblocking Command
with ID %s:
\"
%s %s
\"
"
,
cfg
.
ID
,
cfg
.
Command
,
strings
.
Join
(
cfg
.
Args
,
" "
)
)
log
.
Printf
(
"[INFO] Nonblocking Command
\"
%s %s
\"
with ID %s"
,
cfg
.
Command
,
strings
.
Join
(
cfg
.
Args
,
" "
),
cfg
.
ID
)
return
cmd
.
Start
()
}
log
.
Printf
(
"[INFO] Blocking Command
with ID %s:
\"
%s %s
\"
"
,
cfg
.
ID
,
cfg
.
Command
,
strings
.
Join
(
cfg
.
Args
,
" "
)
)
log
.
Printf
(
"[INFO] Blocking Command
\"
%s %s
\"
with ID %s"
,
cfg
.
Command
,
strings
.
Join
(
cfg
.
Args
,
" "
),
cfg
.
ID
)
err
:=
cmd
.
Run
()
if
err
!=
nil
{
return
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment