@@ -17,7 +17,7 @@ func (h *handler) logRequest(r *http.Request) {
1717 buf = append (buf , ' ' ) // 1 byte
1818 buf = append (buf , []byte (r .RequestURI )... )
1919
20- h .logger .LogAccess (buf )
20+ go h .logger .LogAccess (buf )
2121}
2222
2323func (h * handler ) logMutate (username , action , detail string , r * http.Request ) {
@@ -38,7 +38,7 @@ func (h *handler) logMutate(username, action, detail string, r *http.Request) {
3838 buf = append (buf , ':' , ' ' ) // 2 bytes
3939 buf = append (buf , []byte (detail )... )
4040
41- h .logger .LogAccess (buf )
41+ go h .logger .LogAccess (buf )
4242}
4343
4444func (h * handler ) logUpload (username , filename , fsPath string , r * http.Request ) {
@@ -59,7 +59,7 @@ func (h *handler) logUpload(username, filename, fsPath string, r *http.Request)
5959 buf = append (buf , []byte (" -> " )... ) // 4 bytes
6060 buf = append (buf , []byte (fsPath )... )
6161
62- h .logger .LogAccess (buf )
62+ go h .logger .LogAccess (buf )
6363}
6464
6565func (h * handler ) logArchive (filename , relPath string , r * http.Request ) {
@@ -75,5 +75,5 @@ func (h *handler) logArchive(filename, relPath string, r *http.Request) {
7575 buf = append (buf , []byte (" <- " )... ) // 4 bytes
7676 buf = append (buf , []byte (relPath )... )
7777
78- h .logger .LogAccess (buf )
78+ go h .logger .LogAccess (buf )
7979}
0 commit comments