cache invalidation logging improved

This commit is contained in:
Frederik Löffert
2016-10-23 16:23:24 +02:00
parent 66461711ca
commit dff0eee252
2 changed files with 3 additions and 0 deletions
Binary file not shown.
+3
View File
@@ -34,6 +34,7 @@ func (p *Proxy) invalidateCache(w http.ResponseWriter, r *http.Request) {
}(p)
w.WriteHeader(http.StatusOK)
log.Println(fmt.Sprintf("%d\t%s\t%s", http.StatusOK, r.URL, "invalidate cache"))
}
func (p *Proxy) serveCachedNeosContentServerExport(w http.ResponseWriter, r *http.Request) {
@@ -69,6 +70,7 @@ func (p *Proxy) streamCachedNeosContentServerExport(w http.ResponseWriter, r *ht
}
func (p *Proxy) cacheNeosContentServerExport() (err error) {
log.Println(fmt.Sprintf("%d\t%s\t%s", http.StatusProcessing, "/contentserverproxy/cache", "get new contentserver export from neos"))
cacheFile, err := os.Create(p.FilenameCachedContentServerExport + ".download")
if err != nil {
return
@@ -95,6 +97,7 @@ func (p *Proxy) cacheNeosContentServerExport() (err error) {
return
}
log.Println(fmt.Sprintf("%d\t%s\t%s", http.StatusOK, "/contentserverproxy/cache", "got new contentserver export from neos"))
return nil
}