summaryrefslogtreecommitdiffstats
path: root/modules/log/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/log/file.go')
-rw-r--r--modules/log/file.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/log/file.go b/modules/log/file.go
index 79cbe740fd..bc9d741724 100644
--- a/modules/log/file.go
+++ b/modules/log/file.go
@@ -15,8 +15,8 @@ import (
"sync"
"time"
+ "code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/util"
- jsoniter "github.com/json-iterator/go"
)
// FileLogger implements LoggerProvider.
@@ -101,7 +101,6 @@ func NewFileLogger() LoggerProvider {
// "rotate":true
// }
func (log *FileLogger) Init(config string) error {
- json := jsoniter.ConfigCompatibleWithStandardLibrary
if err := json.Unmarshal([]byte(config), log); err != nil {
return fmt.Errorf("Unable to parse JSON: %v", err)
}