Merge remote-tracking branch 'origin/fastpath'

* origin/fastpath:
  No longer write to the PacketFilter::LOG stream if not reading traffic.
This commit is contained in:
Robin Sommer 2011-11-03 15:21:08 -07:00
commit 41a443677b
3 changed files with 8 additions and 2 deletions

View file

@ -144,7 +144,8 @@ function install()
$sub=default_filter]);
}
Log::write(PacketFilter::LOG, info);
if ( reading_live_traffic() || reading_traces() )
Log::write(PacketFilter::LOG, info);
}
event bro_init() &priority=10