mirror of
https://github.com/googleforgames/open-match.git
synced 2025-03-25 13:24:18 +00:00
Disable logrus.SetReportCaller() (#222)
This commit is contained in:
@ -4,7 +4,7 @@ debug: true
|
||||
logging:
|
||||
level: debug
|
||||
format: text
|
||||
source: true
|
||||
source: false
|
||||
|
||||
api:
|
||||
backend:
|
||||
|
@ -29,7 +29,7 @@ data:
|
||||
logging:
|
||||
level: debug
|
||||
format: text
|
||||
source: true
|
||||
source: false
|
||||
|
||||
api:
|
||||
backend:
|
||||
|
@ -774,7 +774,7 @@ data:
|
||||
logging:
|
||||
level: debug
|
||||
format: text
|
||||
source: true
|
||||
source: false
|
||||
|
||||
api:
|
||||
backend:
|
||||
|
@ -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{
|
||||
|
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user