fix(script): set default tag to label (#223)
This commit is contained in:
parent
16b7d09d63
commit
a22e84204d
@ -27,7 +27,7 @@ namespace modules {
|
|||||||
|
|
||||||
m_interval = chrono::duration<double>{m_conf.get<double>(name(), "interval", m_tail ? 0.0 : 5.0)};
|
m_interval = chrono::duration<double>{m_conf.get<double>(name(), "interval", m_tail ? 0.0 : 5.0)};
|
||||||
|
|
||||||
m_formatter->add(DEFAULT_FORMAT, TAG_OUTPUT, {TAG_OUTPUT, TAG_LABEL});
|
m_formatter->add(DEFAULT_FORMAT, TAG_LABEL, {TAG_OUTPUT, TAG_LABEL});
|
||||||
|
|
||||||
if (m_formatter->has(TAG_LABEL)) {
|
if (m_formatter->has(TAG_LABEL)) {
|
||||||
m_label = load_optional_label(m_conf, name(), "label", "%output%");
|
m_label = load_optional_label(m_conf, name(), "label", "%output%");
|
||||||
|
Loading…
Reference in New Issue
Block a user