mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
App -> App()
This commit is contained in:
committed by
Jae Kwon
parent
e59de906f7
commit
f03547007a
@ -24,12 +24,12 @@ func init() {
|
||||
|
||||
// By default, there's a stdout terminal format handler.
|
||||
handlers = append(handlers, log15.LvlFilterHandler(
|
||||
getLevel(config.App.GetString("Log.Stdout.Level")),
|
||||
getLevel(config.App().GetString("Log.Stdout.Level")),
|
||||
log15.StreamHandler(os.Stdout, log15.TerminalFormat()),
|
||||
))
|
||||
|
||||
// Maybe also write to a file.
|
||||
if _logFileDir := config.App.GetString("Log.File.Dir"); _logFileDir != "" {
|
||||
if _logFileDir := config.App().GetString("Log.File.Dir"); _logFileDir != "" {
|
||||
// Create log dir if it doesn't exist
|
||||
err := os.MkdirAll(_logFileDir, 0700)
|
||||
if err != nil {
|
||||
@ -38,7 +38,7 @@ func init() {
|
||||
}
|
||||
// File handler
|
||||
handlers = append(handlers, log15.LvlFilterHandler(
|
||||
getLevel(config.App.GetString("Log.File.Level")),
|
||||
getLevel(config.App().GetString("Log.File.Level")),
|
||||
log15.Must.FileHandler(_logFileDir+"/tendermint.log", log15.LogfmtFormat()),
|
||||
))
|
||||
}
|
||||
|
Reference in New Issue
Block a user