Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
8e61a6a6
Unverified
Commit
8e61a6a6
authored
Apr 28, 2018
by
Waleed Gadelkareem
Committed by
GitHub
Apr 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow access log regardless of the log level
parent
f1668881
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
accesslog.go
logs/accesslog.go
+5
-6
No files found.
logs/accesslog.go
View file @
8e61a6a6
...
@@ -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
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment