add comment for ruling out error in elopage webhook

This commit is contained in:
Dario 2020-09-22 16:45:11 +02:00
parent ebf2cf79d6
commit 3aed4e66cb

View File

@ -117,6 +117,7 @@ void ElopageWebhook::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::
// check event type
std::string event = elopageRequestData.get("event", "");
if (event == "lesson.viewed") {
printf("elopage request was lesson viewed\n");
return;
}
@ -144,7 +145,7 @@ void ElopageWebhook::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::
file << std::endl;
file.close();
std::string timeUsedStr = timeUsed.string();
printf("[%s] time for elopage request write to file and maybe wait on lock: %s\n", dateTimeStr.data(), timeUsedStr.data());
printf("[%s] time for elopage request write to file: %s\n", dateTimeStr.data(), timeUsedStr.data());
mutex.unlock();