diff options
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r-- | modules/base/tool.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go index 8324fed4..97b605c0 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -22,10 +22,10 @@ import ( "github.com/Unknwon/com" "github.com/Unknwon/i18n" + log "gopkg.in/clog.v1" "github.com/gogits/chardet" - "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/setting" ) @@ -52,17 +52,17 @@ func ShortSha(sha1 string) string { func DetectEncoding(content []byte) (string, error) { if utf8.Valid(content) { - log.Debug("Detected encoding: utf-8 (fast)") + log.Trace("Detected encoding: utf-8 (fast)") return "UTF-8", nil } result, err := chardet.NewTextDetector().DetectBest(content) if result.Charset != "UTF-8" && len(setting.Repository.AnsiCharset) > 0 { - log.Debug("Using default AnsiCharset: %s", setting.Repository.AnsiCharset) + log.Trace("Using default AnsiCharset: %s", setting.Repository.AnsiCharset) return setting.Repository.AnsiCharset, err } - log.Debug("Detected encoding: %s", result.Charset) + log.Trace("Detected encoding: %s", result.Charset) return result.Charset, err } |