This commit is contained in:
DeveloperDurp 2024-09-02 14:08:54 -05:00
parent 73830d57b8
commit b4562a1da4
13 changed files with 89 additions and 130 deletions

View file

@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"gitlab.com/developerdurp/durpify/logger"
"github.com/charmbracelet/log"
"net/http"
)
@ -38,7 +38,7 @@ func (message *StandardMessage) SendReponse(w http.ResponseWriter) {
// Write the message to the response body.
err := json.NewEncoder(w).Encode(message.Message)
if err != nil {
logger.LogError("Failed to Encode")
log.Error("Failed to Encode")
}
}
@ -48,7 +48,7 @@ func (message *StandardError) SendReponse(w http.ResponseWriter) {
// Write the message to the response body.
err := json.NewEncoder(w).Encode(message)
if err != nil {
logger.LogError("Failed to Encode")
log.Error("Failed to Encode")
}
}