mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 12:40:38 +00:00
@ -17,8 +17,8 @@ package logs
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"time"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -55,7 +55,7 @@ func (r *AccessLogRecord) json() ([]byte, error) {
|
||||
func disableEscapeHTML(i interface{}) {
|
||||
e, ok := i.(interface {
|
||||
SetEscapeHTML(bool)
|
||||
});
|
||||
})
|
||||
if ok {
|
||||
e.SetEscapeHTML(false)
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ const (
|
||||
func formatTimeHeader(when time.Time) ([]byte, int) {
|
||||
y, mo, d := when.Date()
|
||||
h, mi, s := when.Clock()
|
||||
ns := when.Nanosecond()/1000000
|
||||
ns := when.Nanosecond() / 1000000
|
||||
//len("2006/01/02 15:04:05.123 ")==24
|
||||
var buf [24]byte
|
||||
|
||||
|
Reference in New Issue
Block a user