mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-26 17:28:48 +08:00
fix: Replace logging with fmt.Println for language file loading errors in i18n module
This commit is contained in:
parent
83874f4c27
commit
18114c545a
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package i18n
|
|||
|
||||
import (
|
||||
"embed"
|
||||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
|
@ -143,7 +144,7 @@ func Init() {
|
|||
|
||||
for _, file := range langFiles {
|
||||
if _, err := bundle.LoadMessageFileFS(fs, file); err != nil {
|
||||
global.LOG.Warnf("failed to load language file %s: %v", file, err)
|
||||
fmt.Println("failed to load language file %s: %v", file, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue