mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-05 12:46:50 +08:00
Match-id-c18c69ed7f25316be55a9d9b5f459d74a873989b
This commit is contained in:
@@ -75,6 +75,7 @@ func initLogModule(ctx context.Context) error {
|
||||
MaxBackups: backups,
|
||||
MaxAge: logMaxAge,
|
||||
OnlyToFile: true,
|
||||
FileMaxSize: 2,
|
||||
}
|
||||
if err := hwlog.InitRunLogger(&runLogConfig, ctx); err != nil {
|
||||
fmt.Printf("hwlog init failed, error is %v", err)
|
||||
@@ -86,6 +87,7 @@ func initLogModule(ctx context.Context) error {
|
||||
MaxBackups: backups,
|
||||
MaxAge: logMaxAge,
|
||||
OnlyToFile: true,
|
||||
FileMaxSize: 2,
|
||||
}
|
||||
if err := hwlog.InitOperateLogger(&operateLogConfig, ctx); err != nil {
|
||||
fmt.Printf("hwlog init failed, error is %v", err)
|
||||
|
Reference in New Issue
Block a user