No newlines at end of log messages

Log messages should not end with a new line, this should be entirely
handled by the underlying log library.

Signed-off-by: Thomas Boerger <thomas@webhippie.de>
This commit is contained in:
Thomas Boerger 2019-12-05 10:56:45 +01:00
parent b0626089f3
commit 30aec5b872
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B

View File

@ -216,7 +216,7 @@ func (s *service) start() error {
ch <- l.Close() ch <- l.Close()
}() }()
log.Logf("Listening on %v\n", l.Addr().String()) log.Logf("Listening on %v", l.Addr().String())
return nil return nil
} }
@ -381,7 +381,7 @@ func (s *service) Run() error {
select { select {
// wait on kill signal // wait on kill signal
case sig := <-ch: case sig := <-ch:
log.Logf("Received signal %s\n", sig) log.Logf("Received signal %s", sig)
// wait on context cancel // wait on context cancel
case <-s.opts.Context.Done(): case <-s.opts.Context.Done():
log.Logf("Received context shutdown") log.Logf("Received context shutdown")