mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-13 17:40:26 -07:00
chore: better request logging, remove unused env
This commit is contained in:
parent
0030628db1
commit
a14fc55d55
6 changed files with 30 additions and 23 deletions
|
|
@ -105,7 +105,7 @@ func serveDefaultImage(w http.ResponseWriter, r *http.Request, size catalog.Imag
|
|||
defaultImagePath := filepath.Join(catalog.SourceImageDir(), "default_img")
|
||||
if _, err = os.Stat(defaultImagePath); os.IsNotExist(err) {
|
||||
l.Debug().Msg("Default image does not exist in cache, attempting to move...")
|
||||
err = os.MkdirAll(filepath.Dir(defaultImagePath), 0755)
|
||||
err = os.MkdirAll(filepath.Dir(defaultImagePath), 0744)
|
||||
if err != nil {
|
||||
l.Err(err).Msg("Error when attempting to create image_cache/full dir")
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue