Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.

Commit 9a8d9af

Browse files
committed
cleaned up some log.prints in the set-functions
1 parent 9b0086a commit 9a8d9af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Comfortstat/Comfortstat.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (rsc *UnitAsset) set_minTemp(w http.ResponseWriter, r *http.Request) {
105105
case "PUT":
106106
sig, err := usecases.HTTPProcessSetRequest(w, r)
107107
if err != nil {
108-
log.Println("Error with the setting request of the position ", err)
108+
//log.Println("Error with the setting request of the position ", err)
109109
http.Error(w, "request incorreclty formated", http.StatusBadRequest)
110110
return
111111

@@ -123,7 +123,7 @@ func (rsc *UnitAsset) set_maxTemp(w http.ResponseWriter, r *http.Request) {
123123
case "PUT":
124124
sig, err := usecases.HTTPProcessSetRequest(w, r)
125125
if err != nil {
126-
log.Println("Error with the setting request of the position ", err)
126+
//log.Println("Error with the setting request of the position ", err)
127127
http.Error(w, "request incorreclty formated", http.StatusBadRequest)
128128
return
129129
}
@@ -141,7 +141,7 @@ func (rsc *UnitAsset) set_minPrice(w http.ResponseWriter, r *http.Request) {
141141
case "PUT":
142142
sig, err := usecases.HTTPProcessSetRequest(w, r)
143143
if err != nil {
144-
log.Println("Error with the setting request of the position ", err)
144+
//log.Println("Error with the setting request of the position ", err)
145145
http.Error(w, "request incorreclty formated", http.StatusBadRequest)
146146
return
147147
}
@@ -160,7 +160,7 @@ func (rsc *UnitAsset) set_maxPrice(w http.ResponseWriter, r *http.Request) {
160160
case "PUT":
161161
sig, err := usecases.HTTPProcessSetRequest(w, r)
162162
if err != nil {
163-
log.Println("Error with the setting request of the position ", err)
163+
//log.Println("Error with the setting request of the position ", err)
164164
http.Error(w, "request incorreclty formated", http.StatusBadRequest)
165165
return
166166
}
@@ -179,7 +179,7 @@ func (rsc *UnitAsset) set_desiredTemp(w http.ResponseWriter, r *http.Request) {
179179
case "PUT":
180180
sig, err := usecases.HTTPProcessSetRequest(w, r)
181181
if err != nil {
182-
log.Println("Error with the setting request of the position ", err)
182+
//log.Println("Error with the setting request of the position ", err)
183183
http.Error(w, "request incorreclty formated", http.StatusBadRequest)
184184
return
185185
}

0 commit comments

Comments
 (0)