fix: refine logging
This commit was merged in pull request #293.
This commit is contained in:
@@ -12,7 +12,7 @@ func TriggerToast(w http.ResponseWriter, r *http.Request, class string, message
|
||||
if isHtmx(r) {
|
||||
w.Header().Set("HX-Trigger", fmt.Sprintf(`{"toast": "%v|%v"}`, class, message))
|
||||
} else {
|
||||
log.ErrorMsg("Trying to trigger toast in non-HTMX request")
|
||||
log.Error("Trying to trigger toast in non-HTMX request")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user