@@ -213,10 +213,11 @@ int EventDispatcherPoll::poll(std::vector<struct pollfd> *pollfds)
else
timeout = { 0, 0 };
- LOG(Event, Debug)
- << "timeout " << timeout.tv_sec << "."
- << std::setfill('0') << std::setw(9)
- << timeout.tv_nsec;
+ LOG(Event, Debug)
+ << "next timer " << nextTimer << " expires in "
+ << timeout.tv_sec << "."
+ << std::setfill('0') << std::setw(9)
+ << timeout.tv_nsec;
}
return ppoll(pollfds->data(), pollfds->size(),
@@ -96,7 +96,7 @@ void Timer::start(std::chrono::milliseconds duration)
void Timer::start(std::chrono::steady_clock::time_point deadline)
{
if (Thread::current() != thread()) {
- LOG(Timer, Error) << "Timer can't be started from another thread";
+ LOG(Timer, Error) << "Timer " << this << " << can't be started from another thread";
return;
}
@@ -128,7 +128,7 @@ void Timer::stop()
return;
if (Thread::current() != thread()) {
- LOG(Timer, Error) << "Timer can't be stopped from another thread";
+ LOG(Timer, Error) << "Timer " << this << " can't be stopped from another thread";
return;
}