mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Make debug stream names use "-", and handle "_" transparently
This looks consistent, and doesn't break any existing uses with underscores.
This commit is contained in:
parent
7563af4906
commit
b1e0e26484
3 changed files with 21 additions and 6 deletions
|
@ -108,9 +108,9 @@ private:
|
|||
|
||||
static Stream streams[NUM_DBGS];
|
||||
|
||||
const std::string PluginStreamName(const std::string& plugin_name) {
|
||||
return "plugin-" + util::strtolower(util::strreplace(plugin_name, "::", "-"));
|
||||
}
|
||||
// Canonical rendering of a plugin's name. This is lower-cased,
|
||||
// with "::" and "_" both becoming "-".
|
||||
const std::string PluginStreamName(const std::string& plugin_name) const;
|
||||
};
|
||||
|
||||
extern DebugLogger debug_logger;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue