mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-10 04:36:50 +00:00
add logs
This commit is contained in:
parent
f89ee4f33d
commit
32350c59b6
1 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"embed"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
|
@ -104,7 +105,8 @@ func renderTempl(c echo.Context, status int, t templ.Component) error {
|
|||
|
||||
err := t.Render(context.Background(), c.Response().Writer)
|
||||
if err != nil {
|
||||
return c.String(http.StatusInternalServerError, "failed to render response template")
|
||||
log.Printf("failed to render response template %s", err)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue