Replace Serial.* logging with ESP_LOG* macros (issue #8) #12
No reviewers
Labels
No labels
bug
bug
critical
documentation
duplicate
enhancement
enhancement
feature
good first issue
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eddy/Project_SylDa!12
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-8-cleanup-logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces all
Serial.println/Serial.printfdebug logging withESP_LOG*macros (ESP_LOGE,ESP_LOGW,ESP_LOGI,ESP_LOGD).Changes
ESP_LOG*withTAG="server"ESP_LOG*withTAG="client"CORE_DEBUG_LEVELlowered from 5 (verbose) to 3 (warn) for productionKEY?,VERSION?,SET_KEY:, etc.) remainSerial.printf— that is communication protocol, not loggingWhy
Serial.printlnspam on serial monitor made protocol output unreadableESP_LOG*supports log levels, filtering, and per-tag controlCORE_DEBUG_LEVELCloses #8
- Replace remaining Serial.println("ERROR:...") with ESP_LOGE in client.cpp - Add Serial.println("ERROR") for protocol response where needed - Downgrade heartbeat from ESP_LOGI to ESP_LOGD (not needed in production)