mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 10:22:36 +08:00
fix cron
This commit is contained in:
parent
012a173629
commit
8ea9484255
@ -24,8 +24,7 @@ func NewRootCmd() (rootCmd *RootCmd) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
log.InitFromConfig("newlog")
|
||||
return nil
|
||||
return log.InitFromConfig("newlog")
|
||||
},
|
||||
}
|
||||
rootCmd.Command = c
|
||||
|
@ -69,8 +69,13 @@ func NewZapLogger() (*ZapLogger, error) {
|
||||
Development: true,
|
||||
Encoding: "json",
|
||||
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},
|
||||
Sampling: &zap.SamplingConfig{
|
||||
Initial: 0,
|
||||
Thereafter: 0,
|
||||
Hook: nil,
|
||||
},
|
||||
}
|
||||
l, err := zapConfig.Build()
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user