refactor: remove debug logging from checkSpoolmanInstance function
This commit is contained in:
		| @@ -685,8 +685,6 @@ bool checkSpoolmanInstance() { | |||||||
|                 if (!error && doc["status"].is<String>()) { |                 if (!error && doc["status"].is<String>()) { | ||||||
|                     const char* status = doc["status"]; |                     const char* status = doc["status"]; | ||||||
|                     http.end(); |                     http.end(); | ||||||
|                     Serial.print("Spoolman status: "); |  | ||||||
|                     Serial.println(status); |  | ||||||
|  |  | ||||||
|                     if (!checkSpoolmanExtraFields()) { |                     if (!checkSpoolmanExtraFields()) { | ||||||
|                         Serial.println("Fehler beim Überprüfen der Extrafelder."); |                         Serial.println("Fehler beim Überprüfen der Extrafelder."); | ||||||
| @@ -702,8 +700,6 @@ bool checkSpoolmanInstance() { | |||||||
|                     oledShowTopRow(); |                     oledShowTopRow(); | ||||||
|                     spoolmanConnected = true; |                     spoolmanConnected = true; | ||||||
|                     returnValue = strcmp(status, "healthy") == 0; |                     returnValue = strcmp(status, "healthy") == 0; | ||||||
|                     Serial.print("Spoolman instance is healthy: "); |  | ||||||
|                     Serial.println(returnValue); |  | ||||||
|                 }else{ |                 }else{ | ||||||
|                     spoolmanConnected = false; |                     spoolmanConnected = false; | ||||||
|                 } |                 } | ||||||
| @@ -717,7 +713,6 @@ bool checkSpoolmanInstance() { | |||||||
|             Serial.println("Error contacting spoolman instance! HTTP Code: " + String(httpCode)); |             Serial.println("Error contacting spoolman instance! HTTP Code: " + String(httpCode)); | ||||||
|         } |         } | ||||||
|         http.end(); |         http.end(); | ||||||
|         returnValue = false; |  | ||||||
|         spoolmanApiState = API_IDLE; |         spoolmanApiState = API_IDLE; | ||||||
|     }else{ |     }else{ | ||||||
|         // If the check is skipped, return the previous status |         // If the check is skipped, return the previous status | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user