Unverified Commit 8e61a6a6 authored by Waleed Gadelkareem's avatar Waleed Gadelkareem Committed by GitHub

Allow access log regardless of the log level

parent f1668881
...@@ -16,9 +16,10 @@ package logs ...@@ -16,9 +16,10 @@ package logs
import ( import (
"bytes" "bytes"
"strings"
"encoding/json" "encoding/json"
"time"
"fmt" "fmt"
"time"
) )
const ( const (
...@@ -53,10 +54,9 @@ func (r *AccessLogRecord) json() ([]byte, error) { ...@@ -53,10 +54,9 @@ func (r *AccessLogRecord) json() ([]byte, error) {
} }
func disableEscapeHTML(i interface{}) { func disableEscapeHTML(i interface{}) {
e, ok := i.(interface { if e, ok := i.(interface {
SetEscapeHTML(bool) SetEscapeHTML(bool)
}); }); ok {
if ok {
e.SetEscapeHTML(false) e.SetEscapeHTML(false)
} }
} }
...@@ -81,6 +81,5 @@ func AccessLog(r *AccessLogRecord, format string) { ...@@ -81,6 +81,5 @@ func AccessLog(r *AccessLogRecord, format string) {
msg = string(jsonData) msg = string(jsonData)
} }
} }
beeLogger.writeMsg(levelLoggerImpl, strings.TrimSpace(msg))
beeLogger.Debug(msg)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment