Remove all fmr.Println and add zerolog logging
Build and Push Docker Image / build_and_push (push) Failing after 1m42s
Details
Build and Push Docker Image / build_and_push (push) Failing after 1m42s
Details
This commit is contained in:
parent
a8acc9950a
commit
1df56a4f83
|
@ -27,7 +27,6 @@ import (
|
|||
|
||||
func (h ApplicationHandler) VehiclesSearch(w http.ResponseWriter, r *http.Request) {
|
||||
r.ParseForm()
|
||||
fmt.Println("invoked")
|
||||
var beneficiary mobilityaccountsstorage.Account
|
||||
|
||||
beneficiarydocuments := []filestorage.FileInfo{}
|
||||
|
@ -80,9 +79,7 @@ func (h ApplicationHandler) VehiclesSearch(w http.ResponseWriter, r *http.Reques
|
|||
v := vehicle.ToStorageType()
|
||||
|
||||
if r.FormValue("type") == "Voiture" && automatic {
|
||||
fmt.Println(v.Data["automatic"])
|
||||
if auto, ok := v.Data["automatic"].(bool); !ok || !auto {
|
||||
fmt.Println(v.Data["automatic"])
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +134,6 @@ func (h ApplicationHandler) VehiclesSearch(w http.ResponseWriter, r *http.Reques
|
|||
}
|
||||
|
||||
func (h ApplicationHandler) Book(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Println("Book")
|
||||
current_group, err := h.currentGroup(r)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("")
|
||||
|
@ -350,9 +346,6 @@ func (h ApplicationHandler) VehiclesBookingsList(w http.ResponseWriter, r *http.
|
|||
vehicles, _ := h.services.GetVehiclesMap()
|
||||
groups, _ := h.services.GetGroupsMap()
|
||||
|
||||
// fmt.Println("bookings : ", bookings)
|
||||
// fmt.Println("vehicles : ", vehicles)
|
||||
// fmt.Println("groups : ", groups)
|
||||
h.Renderer.VehicleBookingsList(w, r, bookings, vehicles, groups)
|
||||
}
|
||||
|
||||
|
@ -361,7 +354,7 @@ func (h *ApplicationHandler) BookingDocumentDownload(w http.ResponseWriter, r *h
|
|||
bookingid := vars["bookingid"]
|
||||
document := vars["document"]
|
||||
|
||||
fmt.Println(fmt.Sprintf("%s/%s", bookingid, document))
|
||||
log.Debug().Str("booking id", bookingid).Str("document", document).Msg("Document and booking ID")
|
||||
|
||||
file, info, err := h.filestorage.Get(filestorage.PREFIX_BOOKINGS, fmt.Sprintf("%s/%s", bookingid, document))
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue