File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ func createDotConfig(ctx *cli.Context) (*dot.Config, error) {
123
123
124
124
// TODO: log this better.
125
125
// See https://github.com/ChainSafe/gossamer/issues/1945
126
- logger .Infof ("loaded package log configuration: %#v " , cfg .Log )
126
+ logger .Infof ("loaded package log configuration: %s " , cfg .Log )
127
127
128
128
// set global configuration values
129
129
if err := setDotGlobalConfig (ctx , tomlCfg , & cfg .Global ); err != nil {
Original file line number Diff line number Diff line change @@ -63,6 +63,21 @@ type LogConfig struct {
63
63
FinalityGadgetLvl log.Level
64
64
}
65
65
66
+ func (l LogConfig ) String () string {
67
+ entries := []string {
68
+ fmt .Sprintf ("core: %s" , l .CoreLvl ),
69
+ fmt .Sprintf ("digest: %s" , l .DigestLvl ),
70
+ fmt .Sprintf ("sync: %s" , l .SyncLvl ),
71
+ fmt .Sprintf ("network: %s" , l .NetworkLvl ),
72
+ fmt .Sprintf ("rpc: %s" , l .RPCLvl ),
73
+ fmt .Sprintf ("state: %s" , l .StateLvl ),
74
+ fmt .Sprintf ("runtime: %s" , l .RuntimeLvl ),
75
+ fmt .Sprintf ("block producer: %s" , l .BlockProducerLvl ),
76
+ fmt .Sprintf ("finality gadget: %s" , l .FinalityGadgetLvl ),
77
+ }
78
+ return strings .Join (entries , ", " )
79
+ }
80
+
66
81
// InitConfig is the configuration for the node initialization
67
82
type InitConfig struct {
68
83
Genesis string
You can’t perform that action at this time.
0 commit comments