mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix cron
This commit is contained in:
parent
8ea9484255
commit
ee738e11cd
@ -1,7 +1,6 @@
|
|||||||
package log
|
package log
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"OpenIM/pkg/common/config"
|
|
||||||
"OpenIM/pkg/common/constant"
|
"OpenIM/pkg/common/constant"
|
||||||
"OpenIM/pkg/common/tracelog"
|
"OpenIM/pkg/common/tracelog"
|
||||||
"context"
|
"context"
|
||||||
@ -69,8 +68,7 @@ func NewZapLogger() (*ZapLogger, error) {
|
|||||||
Development: true,
|
Development: true,
|
||||||
Encoding: "json",
|
Encoding: "json",
|
||||||
EncoderConfig: zap.NewProductionEncoderConfig(),
|
EncoderConfig: zap.NewProductionEncoderConfig(),
|
||||||
OutputPaths: []string{"stdout", config.Config.Log.StorageLocation + "openIM2.log"},
|
OutputPaths: []string{"stdout"},
|
||||||
ErrorOutputPaths: []string{config.Config.Log.StorageLocation},
|
|
||||||
Sampling: &zap.SamplingConfig{
|
Sampling: &zap.SamplingConfig{
|
||||||
Initial: 0,
|
Initial: 0,
|
||||||
Thereafter: 0,
|
Thereafter: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user