mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +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"
|
"embed"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"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)
|
err := t.Render(context.Background(), c.Response().Writer)
|
||||||
if err != nil {
|
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
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue