mirror of
https://github.com/darlinghq/darlingserver.git
synced 2024-11-26 22:00:26 +00:00
Add additional log info for process kqchannels
This commit is contained in:
parent
4f001e2a34
commit
cfd5cb9999
@ -157,6 +157,8 @@ namespace DarlingServer {
|
||||
Process& operator=(Process&&) = delete;
|
||||
|
||||
virtual int setup();
|
||||
|
||||
virtual void logToStream(Log::Stream& stream) const;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -717,3 +717,16 @@ std::function<void()> DarlingServer::Kqchan::Process::_checkForEventsAsyncFactor
|
||||
self->_checkForEventsAsync();
|
||||
};
|
||||
};
|
||||
|
||||
void DarlingServer::Kqchan::Process::logToStream(Log::Stream& stream) const {
|
||||
auto proc = _targetProcess.lock();
|
||||
|
||||
Kqchan::logToStream(stream);
|
||||
|
||||
stream << ":";
|
||||
if (proc) {
|
||||
stream << *proc;
|
||||
} else {
|
||||
stream << "<null>";
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user