implemented log levels and structured log with slog
Some checks failed
Tests / Run Go Tests (push) Failing after 1m36s

This commit is contained in:
2025-10-13 22:33:48 +02:00
parent ea8e78fd9f
commit 5001f24d9b
9 changed files with 21 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ import (
func PDFHandler(w http.ResponseWriter, r *http.Request) {
helper.RequiresLogin(Session, w, r)
startDate, err := parseTimestamp(r, "start", time.Now().Format("2006-01-02"))
startDate, err := parseTimestamp(r, "start_date", time.Now().Format("2006-01-02"))
if err != nil {
log.Println("Error parsing 'start_date' time", err)
http.Error(w, "Timestamp 'start_date' cannot be parsed!", http.StatusBadRequest)