Merge pull request #1019 from tboerger/no-newlin

No newlines at end of log messages
This commit is contained in:
Asim Aslam 2019-12-05 10:08:16 +00:00 committed by GitHub
commit 26b5d1994a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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