1
0
Fork 0

MORE Debug logging

This commit is contained in:
Michael Hackstein 2019-07-08 10:45:52 +02:00
parent 5bd5a9bf1a
commit fea644847e
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class SupervisedScheduler final : public Scheduler {
explicit WorkItem(std::function<void()>&& handler)
: _handler(std::move(handler)), _startTime(TRI_microtime()), _called(false) {}
~WorkItem() {
if (!_called) {
if (!_called && (TRI_microtime() - _startTime) > 0.001) {
LOG_TOPIC("hunde", ERR, arangodb::Logger::REPLICATION)
<< "Work item forgotten, created at " << _startTime << " that is "
<< (TRI_microtime() - _startTime) << "s ago.";