Skip to content
Snippets Groups Projects
Commit d1c45d66 authored by Travis Ralston's avatar Travis Ralston
Browse files

Generify response log entry

parent 5a4af4f7
No related branches found
No related tags found
No related merge requests found
......@@ -127,12 +127,7 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
jsonStr := string(b)
_, isDownload := res.(r0.DownloadMediaResponse)
if isDownload {
contextLog.Info("Replying with result: " + reflect.TypeOf(res).Elem().Name())
} else {
contextLog.Info("Replying with result: " + jsonStr)
}
contextLog.Info("Replying with result: " + reflect.TypeOf(res).Elem().Name() +" " + jsonStr)
switch result := res.(type) {
case *client.ErrorResponse:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment