mirror of
https://github.com/elyby/chrly.git
synced 2024-12-23 13:40:11 +05:30
Fix statsd initialization
This commit is contained in:
parent
440b505306
commit
5862d1cbf6
@ -75,7 +75,7 @@ func newStatsReporter(config *viper.Viper) (slf.StatsReporter, error) {
|
||||
dispatcher := &slf.Dispatcher{}
|
||||
|
||||
statsdAddr := config.GetString("statsd.addr")
|
||||
if statsdAddr == "" {
|
||||
if statsdAddr != "" {
|
||||
hostname, err := os.Hostname()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user