Public Access
add more logging
This commit is contained in:
@@ -376,6 +376,8 @@ func (h *ApiHandler) ServeBlogPostPublish(writer http.ResponseWriter, request *h
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("Published blog article %d", id)
|
||||||
|
|
||||||
WriteResponse(writer, http.StatusOK, map[string]interface{}{})
|
WriteResponse(writer, http.StatusOK, map[string]interface{}{})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -397,6 +399,8 @@ func (h *ApiHandler) ServeBlogPostUnpublish(writer http.ResponseWriter, request
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("Unpublished blog article %d", id)
|
||||||
|
|
||||||
WriteResponse(writer, http.StatusOK, map[string]interface{}{})
|
WriteResponse(writer, http.StatusOK, map[string]interface{}{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user