Skip to content

Commit

Permalink
fix: init network (#11)
Browse files Browse the repository at this point in the history
### Description

> upstream PR: [bnb-chain#1412](bnb-chain#1412)

Description

fields of Node.LogConfig is pointer,
when a field is not set, generate config.toml will fail for marshaling
nil

### Changes

Notable changes:

    * add each change in a bullet point here

Co-authored-by: NathanBSC <122502194+NathanBSC@users.noreply.github.com>
  • Loading branch information
0xcb9ff9 and NathanBSC authored Apr 20, 2023
1 parent ff17138 commit ca9e08c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,13 +502,13 @@ func (c *Config) warnOnce(w *bool, format string, args ...interface{}) {
}

type LogConfig struct {
FileRoot *string
FilePath *string
MaxBytesSize *uint
Level *string
FileRoot *string `toml:",omitempty"`
FilePath *string `toml:",omitempty"`
MaxBytesSize *uint `toml:",omitempty"`
Level *string `toml:",omitempty"`

// TermTimeFormat is the time format used for console logging.
TermTimeFormat *string
TermTimeFormat *string `toml:",omitempty"`
// TimeFormat is the time format used for file logging.
TimeFormat *string
TimeFormat *string `toml:",omitempty"`
}

0 comments on commit ca9e08c

Please sign in to comment.