Skip to content
Snippets Groups Projects
Unverified Commit 5c059836 authored by Maximilian Wilhelm's avatar Maximilian Wilhelm Committed by GitHub
Browse files

Merge pull request #275 from bio-routing/fix/bmp_logging

Fix BMP error logging (add address)
parents 1d66c92d dd03b01f
No related branches found
No related tags found
No related merge requests found
......@@ -100,9 +100,12 @@ func (b *BMPServer) AddRouter(addr net.IP, port uint16) {
err = r.serve(c)
atomic.StoreUint32(&r.established, 0)
if err != nil {
r.logger.WithError(err).Error("r.serve() failed")
r.logger.WithFields(log.Fields{
"component": "bmp_server",
"address": conString(r.address.String(), r.port),
}).WithError(err).Error("r.serve() failed")
} else {
log.WithFields(log.Fields{
r.logger.WithFields(log.Fields{
"component": "bmp_server",
"address": conString(r.address.String(), r.port),
}).Info("r.Serve returned without error. Stopping reconnect routine")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment