File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ async function init() {
157157 if ( req . client && req . client . userId ) {
158158 return req . client . userId ;
159159 }
160- return 'none ' ;
160+ return 'anonymous ' ;
161161 } ) ;
162162 morgan . token ( 'breadcrumb' , function ( req : MineSkinV2Request , res ) {
163163 if ( req . breadcrumb ) {
@@ -168,7 +168,7 @@ async function init() {
168168 morgan . token ( 'remote-addr' , ( req , res ) : string => {
169169 return req . headers [ 'x-real-ip' ] as string || req . headers [ 'x-forwarded-for' ] as string || req . connection . remoteAddress || "" ;
170170 } ) ;
171- app . use ( morgan ( ':remote-addr :user [:date[iso]] :breadcrumb :method :url :status :res[content-length] ":user-agent" - :response-time ms' , {
171+ app . use ( morgan ( ':remote-addr :user :breadcrumb :method :url :status :res[content-length] ":user-agent" - :response-time ms' , {
172172 stream : {
173173 write ( str : string ) {
174174 httpLogger . http ( str . trim ( ) )
You can’t perform that action at this time.
0 commit comments