add a define to configure the logfile handling (#1709)

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
jomjol
2022-12-28 14:28:00 +01:00
committed by GitHub
parent ee3b15990d
commit f2f117aea1
2 changed files with 30 additions and 12 deletions

View File

@@ -347,7 +347,7 @@ static esp_err_t send_datafile(httpd_req_t *req, bool send_full_file)
httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*");
// Since the log file is still open for writing, we need to close it first
// Since the log file is still could open for writing, we need to close it first
LogFile.CloseLogFileAppendHandle();
fd = fopen(currentfilename.c_str(), "r");