handlers: Fix the naming of all handlers.

This commit is contained in:
Harshavardhana
2016-02-04 14:57:20 -08:00
parent 4d97c042da
commit 012fbe756b
5 changed files with 36 additions and 36 deletions

View File

@@ -111,8 +111,8 @@ func getLogMessage(w http.ResponseWriter, req *http.Request) ([]byte, *probe.Err
return js, nil
}
// AccessLogHandler logs requests
func AccessLogHandler(h http.Handler) http.Handler {
// setAccessLogHandler logs requests
func setAccessLogHandler(h http.Handler) http.Handler {
file, e := os.OpenFile("access.log", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)
fatalIf(probe.NewError(e), "Unable to open access log.", nil)