mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-14 14:05:59 +08:00
fix cron
This commit is contained in:
+1
-10
@@ -20,16 +20,7 @@ func NewRootCmd() (rootCmd *RootCmd) {
|
|||||||
Short: "Start the server",
|
Short: "Start the server",
|
||||||
Long: `Start the server`,
|
Long: `Start the server`,
|
||||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||||
log.InitFromConfig(log.Config{
|
log.InitFromConfig("newlog")
|
||||||
JSON: true,
|
|
||||||
Level: "-1",
|
|
||||||
Sample: false,
|
|
||||||
SampleInitial: 0,
|
|
||||||
SampleInterval: 0,
|
|
||||||
ItemSampleSeconds: 0,
|
|
||||||
ItemSampleInitial: 0,
|
|
||||||
ItemSampleInterval: 0,
|
|
||||||
}, "newlog")
|
|
||||||
return rootCmd.getConfFromCmdAndInit(cmd)
|
return rootCmd.getConfFromCmdAndInit(cmd)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user