Disable a stream's remote logging via broker if it fails.

If there's something invalid about the stream like trying to log an
unsupported data type, don't keep trying to send remote logs.
This commit is contained in:
Jon Siwek 2015-03-05 11:53:50 -06:00
parent 4f918f1f98
commit 69693663eb

View file

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