mirror of
https://gitlab.durp.info/durfy/modules/durpify.git
synced 2026-05-07 08:00:30 -05:00
update
This commit is contained in:
parent
73830d57b8
commit
b4562a1da4
13 changed files with 89 additions and 130 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue