diff --git a/encoder/encoder.go b/encoder/encoder.go index 976f03496..cf9e15035 100644 --- a/encoder/encoder.go +++ b/encoder/encoder.go @@ -2,7 +2,6 @@ package encoder import ( "errors" - "fmt" "os" "path" "runtime" @@ -127,7 +126,7 @@ func convertImage(raw, optimized, imageType string, extraParams config.ExtraPara } // Remove converted file after convertion if converted { - fmt.Println("delete jpgRaw", convertedRaw) + log.Infoln("Removing intermediate conversion file:", convertedRaw) err := os.Remove(convertedRaw) if err != nil { log.Warnln("failed to delete converted file", err) diff --git a/handler/router.go b/handler/router.go index 7d86bd8f6..bbc431f4d 100644 --- a/handler/router.go +++ b/handler/router.go @@ -145,7 +145,7 @@ func Convert(c *fiber.Ctx) error { // Check the original image for existence, if !helper.ImageExists(rawImageAbs) { helper.DeleteMetadata(reqURIwithQuery, targetHostName) - msg := "image not found" + msg := "Image not found!" _ = c.Send([]byte(msg)) log.Warn(msg) _ = c.SendStatus(404)