Disable logrus.SetReportCaller() (#222)

This commit is contained in:
Jeremy Edwards
2019-04-17 12:26:43 -07:00
committed by GitHub
parent f464b0bd7b
commit 26f5426b61
5 changed files with 5 additions and 10 deletions

View File

@ -4,7 +4,7 @@ debug: true
logging:
level: debug
format: text
source: true
source: false
api:
backend:

View File

@ -29,7 +29,7 @@ data:
logging:
level: debug
format: text
source: true
source: false
api:
backend:

View File

@ -774,7 +774,7 @@ data:
logging:
level: debug
format: text
source: true
source: false
api:
backend:

View File

@ -42,9 +42,6 @@ func NewMulti(paramsList []*ServerParams) (*OpenMatchServer, error) {
// FIXME: We only take the first item in the list.
logger := log.WithFields(paramsList[0].BaseLogFields)
// Add a hook to the logger to log the filename & line number.
log.SetReportCaller(true)
cfg, err := config.Read()
if err != nil {
logger.WithFields(log.Fields{

View File

@ -83,13 +83,11 @@ func NewMiniMatch(params []*serving.ServerParams) (*MiniMatchServer, func(), err
func createOpenMatchServer(paramsList []*serving.ServerParams) (*MiniMatchServer, error) {
logger := log.WithFields(paramsList[0].BaseLogFields)
// Add a hook to the logger to log the filename & line number.
log.SetReportCaller(true)
cfg := viper.New()
cfg.Set("logging.level", "debug")
cfg.Set("logging.format", "text")
cfg.Set("logging.source", true)
// TODO: Re-enable once, https://github.com/sirupsen/logrus/issues/954 is fixed.
cfg.Set("logging.source", false)
promListener := netlistenerTesting.MustListen()