diff options
Diffstat (limited to 'modules/markup/sanitizer.go')
-rw-r--r-- | modules/markup/sanitizer.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go index f685657b..8a88f761 100644 --- a/modules/markup/sanitizer.go +++ b/modules/markup/sanitizer.go @@ -9,7 +9,6 @@ import ( "sync" "github.com/microcosm-cc/bluemonday" - log "gopkg.in/clog.v1" "github.com/gogits/gogs/modules/setting" ) @@ -27,7 +26,6 @@ var sanitizer = &Sanitizer{} // Multiple calls to this function will only create one instance of Sanitizer during // entire application lifecycle. func NewSanitizer() { - log.Trace("Markup: sanitizer initialization requested") sanitizer.init.Do(func() { sanitizer.policy = bluemonday.UGCPolicy() // We only want to allow HighlightJS specific classes for code blocks @@ -39,8 +37,6 @@ func NewSanitizer() { // Custom URL-Schemes sanitizer.policy.AllowURLSchemes(setting.Markdown.CustomURLSchemes...) - - log.Trace("Markup: sanitizer initialized") }) } |