mirror of https://gitee.com/bigwinds/arangodb
MORE Debug logging
This commit is contained in:
parent
5bd5a9bf1a
commit
fea644847e
|
@ -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.";
|
||||
|
|
Loading…
Reference in New Issue