mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
make LogWriter output the type of data stored inside a set or vector.
Now the type output is e.g. vector[string] instead of just vector.
This commit is contained in:
parent
f1e132cd1a
commit
e114bdf627
3 changed files with 22 additions and 4 deletions
|
@ -125,6 +125,12 @@ bool LogWriterAscii::DoInit(string path, int num_fields,
|
|||
const LogField* field = fields[i];
|
||||
names += field->name;
|
||||
types += type_name(field->type);
|
||||
if ( (field->type == TYPE_TABLE) || (field->type == TYPE_VECTOR) )
|
||||
{
|
||||
types += "[";
|
||||
types += type_name(field->subtype);
|
||||
types += "]";
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! (WriteHeaderField("fields", names)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue