Skip to content

Commit

Permalink
cleanups requested by Nikita
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuryshev committed Jun 19, 2019
1 parent 18d1d72 commit 867ef8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/skywire-node/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (cfg *runCfg) startLogger() *runCfg {
if cfg.syslogAddr != "none" {
hook, err := logrus_syslog.NewSyslogHook("udp", cfg.syslogAddr, syslog.LOG_INFO, cfg.tag)
if err != nil {
cfg.logger.Error("Unable to connect to syslog daemon")
cfg.logger.Error("Unable to connect to syslog daemon:", err)
} else {
cfg.masterLogger.AddHook(hook)
cfg.masterLogger.Out = ioutil.Discard
Expand Down Expand Up @@ -172,7 +172,6 @@ func (cfg *runCfg) stopNode() *runCfg {
return cfg
}

// waitOsSignalsAndDelay
func (cfg *runCfg) waitOsSignals() *runCfg {
ch := make(chan os.Signal, 2)
signal.Notify(ch, []os.Signal{syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT}...)
Expand Down

0 comments on commit 867ef8f

Please sign in to comment.