projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae6c1b
)
15954: Use logger instead of writing to stderr.
author
Tom Clegg <tom@tomclegg.ca>
Tue, 10 Mar 2020 14:40:04 +0000
(10:40 -0400)
committer
Tom Clegg <tom@tomclegg.ca>
Tue, 10 Mar 2020 14:54:08 +0000
(10:54 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
lib/boot/supervisor.go
patch
|
blob
|
history
diff --git
a/lib/boot/supervisor.go
b/lib/boot/supervisor.go
index d3fbab06ab7d6b1f88a628712def2126c8c2c3f2..c5f7f42621a48113b6b098bde8a81cc0c2f77591 100644
(file)
--- a/
lib/boot/supervisor.go
+++ b/
lib/boot/supervisor.go
@@
-72,7
+72,7
@@
func (super *Supervisor) Start(ctx context.Context, cfg *arvados.Config) {
err := super.run(cfg)
if err != nil {
-
fmt.Fprintln(super.Stderr, err
)
+
super.logger.WithError(err).Warn("supervisor shut down"
)
}
close(super.done)
}()