mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 18:00:32 +08:00
fix cron
This commit is contained in:
parent
012a173629
commit
8ea9484255
@ -24,8 +24,7 @@ func NewRootCmd() (rootCmd *RootCmd) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.InitFromConfig("newlog")
|
return log.InitFromConfig("newlog")
|
||||||
return nil
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
rootCmd.Command = c
|
rootCmd.Command = c
|
||||||
|
@ -69,8 +69,13 @@ func NewZapLogger() (*ZapLogger, error) {
|
|||||||
Development: true,
|
Development: true,
|
||||||
Encoding: "json",
|
Encoding: "json",
|
||||||
EncoderConfig: zap.NewProductionEncoderConfig(),
|
EncoderConfig: zap.NewProductionEncoderConfig(),
|
||||||
OutputPaths: []string{config.Config.Log.StorageLocation + "openIM2.log"},
|
OutputPaths: []string{"stdout", config.Config.Log.StorageLocation + "openIM2.log"},
|
||||||
ErrorOutputPaths: []string{config.Config.Log.StorageLocation},
|
ErrorOutputPaths: []string{config.Config.Log.StorageLocation},
|
||||||
|
Sampling: &zap.SamplingConfig{
|
||||||
|
Initial: 0,
|
||||||
|
Thereafter: 0,
|
||||||
|
Hook: nil,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
l, err := zapConfig.Build()
|
l, err := zapConfig.Build()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user