diff --git a/src/cpp/controller/PendingTask.cpp b/src/cpp/controller/PendingTask.cpp index 0605bb755..e36fdcc7d 100644 --- a/src/cpp/controller/PendingTask.cpp +++ b/src/cpp/controller/PendingTask.cpp @@ -145,7 +145,9 @@ namespace controller { } void PendingTask::calledFromTimer(Poco::Timer& timer) { - printf("[PendingTask::calledFromTimer]\n"); + Poco::DateTime now; + std::string now_string = Poco::DateTimeFormatter::format(now, "%f.%m.%Y %H:%M:%S"); + printf("[PendingTask::calledFromTimer] now: %s\n", now_string.data()); Poco::ScopedLock _lock(mWorkMutex); auto result = run(); printf("run result: %d\n", result); diff --git a/src/cpp/model/gradido/Transaction.cpp b/src/cpp/model/gradido/Transaction.cpp index 3e5dad767..fae357e04 100644 --- a/src/cpp/model/gradido/Transaction.cpp +++ b/src/cpp/model/gradido/Transaction.cpp @@ -581,6 +581,9 @@ namespace model { // TODO: later check, but now I haven't any way to communicate with the gradido node mTransactionBody->getTransactionBase()->transactionAccepted(getUser()); // trigger community server update in 5 seconds + Poco::DateTime now; + std::string now_string = Poco::DateTimeFormatter::format(now, "%f.%m.%Y %H:%M:%S"); + printf("[%s] trigger community server update in 5 second, now: %s\n", function_name, now_string.data()); CronManager::getInstance()->scheduleUpdateRun(Poco::Timespan(5000, 0)); return 1; }