Improve remote logging via broker.

Only send fields with the &log attribute.
This commit is contained in:
Jon Siwek 2015-03-05 14:07:06 -06:00
parent 69693663eb
commit 25a4d0ebed
7 changed files with 59 additions and 26 deletions

View file

@ -843,8 +843,8 @@ bool Manager::Write(EnumVal* id, RecordVal* columns)
}
#ifdef ENABLE_BROKER
if ( stream->enable_remote )
if ( ! comm_mgr->Log(id, columns, stream->remote_flags) )
if ( stream->enable_remote &&
! comm_mgr->Log(id, columns, stream->columns, stream->remote_flags) )
stream->enable_remote = false;
#endif