zkutil: tiny logging improvement. [#METR-2807]

This commit is contained in:
Michael Kolupaev 2014-05-16 19:54:39 +04:00
parent 226ea78f5b
commit ca6f5df30e

View File

@ -23,7 +23,7 @@ struct WatchWithPromise : public zk::Watch
if (notified)
{
LOG_WARNING(&Logger::get("WatchWithPromise"), "Ignoring event " << WatchEvent::toString(event) << " with state "
<< SessionState::toString(state) << " for path " << path);
<< SessionState::toString(state) << (path.empty() ? "" : " for path " + path));
return;
}
promise.set_value(WatchEventInfo(event, state, path));