logging/Manager: Also pass non-null vector and set

Primarily to align with strings and also to keep the plugin
API the same.
This commit is contained in:
Arne Welzel 2025-08-19 20:00:21 +02:00
parent 247931f2df
commit c44ce78591

View file

@ -1566,9 +1566,6 @@ threading::Value Manager::ValToLogVal(WriterInfo* info, const Stream* stream, st
info->total_truncated_containers->Inc();
}
if ( allowed_elements == 0 )
return lval;
lval.val.set_val.vals = new threading::Value*[allowed_elements];
for ( size_t i = 0; i < allowed_elements && total_record_size < max_log_record_size; i++ ) {
@ -1597,9 +1594,6 @@ threading::Value Manager::ValToLogVal(WriterInfo* info, const Stream* stream, st
info->total_truncated_containers->Inc();
}
if ( allowed_elements == 0 )
return lval;
lval.val.vector_val.vals = new threading::Value*[allowed_elements];
auto& vv = vec->RawVec();