Remove unnecessary var data in log messages. Closes #1640

This commit is contained in:
Gabe Kangas
2022-02-25 15:22:52 -08:00
parent 1c02ed291b
commit 6796998124
7 changed files with 14 additions and 24 deletions

View File

@@ -16,8 +16,6 @@ func InternalErrorHandler(w http.ResponseWriter, err error) {
return
}
log.Errorln(err)
w.WriteHeader(http.StatusInternalServerError)
if err := json.NewEncoder(w).Encode(j{"error": err.Error()}); err != nil {
InternalErrorHandler(w, err)

View File

@@ -72,7 +72,7 @@ func GetCompatibleLogo(w http.ResponseWriter, r *http.Request) {
referrer = "an external site"
}
if !_hasWarnedSVGLogo {
log.Warnf("%s requested your logo. because many social networks do not support SVGs we returned a placeholder instead. change your current logo to a png or jpeg to be most compatible with external social networking sites.", referrer)
log.Warnf("an external site requested your logo. because many social networks do not support SVGs we returned a placeholder instead. change your current logo to a png or jpeg to be most compatible with external social networking sites.")
_hasWarnedSVGLogo = true
}
}