*: add structured logging

This commit is contained in:
Jimmy Zelinskie 2017-05-06 18:48:44 -04:00
parent 353ba01e51
commit cb55019ab8
6 changed files with 81 additions and 11 deletions
middleware

View file

@ -61,6 +61,7 @@ func (l *Logic) HandleAnnounce(ctx context.Context, req *bittorrent.AnnounceRequ
}
}
log.WithFields(resp.LogFields()).Debug("generated announce response")
return resp, nil
}
@ -87,6 +88,7 @@ func (l *Logic) HandleScrape(ctx context.Context, req *bittorrent.ScrapeRequest)
}
}
log.WithFields(resp.LogFields()).Debug("generated scrape response")
return resp, nil
}