|
|
@@ -46,8 +46,9 @@ public:
|
|
|
const int64_t elapsedUs = esp_timer_get_time() - startUs;
|
|
|
if (elapsedUs >= 250000)
|
|
|
{
|
|
|
- ESP_LOGW(TAG, "Slow HTTP handler: %s took %lld ms",
|
|
|
- requestUri, (long long)(elapsedUs / 1000));
|
|
|
+ LogFile.WriteToFile(ESP_LOG_WARN, TAG,
|
|
|
+ std::string("Slow HTTP handler: ") + requestUri + " took " +
|
|
|
+ std::to_string((long long)(elapsedUs / 1000)) + " ms");
|
|
|
}
|
|
|
}
|
|
|
|