mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Include file information in input reader error messages
This commit is contained in:
parent
8184073ef8
commit
098a5d3348
13 changed files with 179 additions and 57 deletions
|
@ -8,6 +8,11 @@
|
|||
#include "zeek/threading/BasicThread.h"
|
||||
#include "zeek/threading/Queue.h"
|
||||
|
||||
namespace zeek::detail
|
||||
{
|
||||
class Location;
|
||||
}
|
||||
|
||||
namespace zeek::threading
|
||||
{
|
||||
|
||||
|
@ -275,6 +280,17 @@ protected:
|
|||
void OnSignalStop() override;
|
||||
void OnKill() override;
|
||||
|
||||
/**
|
||||
* Method for child classes to override to provide file location
|
||||
* information in log messages. This is primarily used by the input
|
||||
* framework's ReaderBackend classes to give more descriptive error
|
||||
* messages.
|
||||
*
|
||||
* @return A Location pointer containing the file location information,
|
||||
* or nullptr if nothing is available.
|
||||
*/
|
||||
virtual zeek::detail::Location* GetLocationInfo() const { return nullptr; }
|
||||
|
||||
private:
|
||||
/**
|
||||
* Pops a message sent by the main thread from the main-to-chold
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue