fix(notif): http 204 treated as error

This commit is contained in:
yusing 2025-05-04 23:54:16 +08:00
parent f9a8aede20
commit f1ba554a24

View file

@ -71,7 +71,7 @@ func (msg *LogMessage) notify(ctx context.Context, provider Provider) error {
defer resp.Body.Close()
switch resp.StatusCode {
case http.StatusOK, http.StatusCreated, http.StatusAccepted:
case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
body, _ := io.ReadAll(resp.Body)
logging.Debug().
Str("provider", provider.GetName()).