comparison pkg/geoserver/reconf.go @ 1035:b0364b8226e0

Fixed another case of inconsistent logging.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 24 Oct 2018 15:52:12 +0200
parents 4c0c4dd393de
children d7152eb11d58
comparison
equal deleted inserted replaced
1034:4299f9c1f191 1035:b0364b8226e0
58 break 58 break
59 } 59 }
60 if try < maxTries { 60 if try < maxTries {
61 if uerr, ok := err.(*url.Error); ok { 61 if uerr, ok := err.(*url.Error); ok {
62 if oerr, ok := uerr.Err.(*net.OpError); ok && oerr.Op == "dial" { 62 if oerr, ok := uerr.Err.(*net.OpError); ok && oerr.Op == "dial" {
63 log.Printf("Failed attempt %d of %d to configure GeoServer. "+ 63 log.Printf("warn: failed attempt %d of %d to configure GeoServer. "+
64 "Will try again in %s...\n", try, maxTries, sleep) 64 "Will try again in %s...\n", try, maxTries, sleep)
65 time.Sleep(sleep) 65 time.Sleep(sleep)
66 continue 66 continue
67 } 67 }
68 } 68 }