mirror of
https://github.com/elyby/chrly.git
synced 2024-12-23 21:50:03 +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{}
|
dispatcher := &slf.Dispatcher{}
|
||||||
|
|
||||||
statsdAddr := config.GetString("statsd.addr")
|
statsdAddr := config.GetString("statsd.addr")
|
||||||
if statsdAddr == "" {
|
if statsdAddr != "" {
|
||||||
hostname, err := os.Hostname()
|
hostname, err := os.Hostname()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user