]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/Graylog: assert(!m_hostname.empty()) in Graylog
authorKefu Chai <kchai@redhat.com>
Mon, 5 Jul 2021 02:09:05 +0000 (10:09 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 5 Jul 2021 04:17:49 +0000 (12:17 +0800)
commitbaae90bd1325f783a6ff9d6d8177192be4c46320
tree807554195fa56ee8ccac43e7ea7b5312daedf11a
parent0bedd067bee2c7abffb527e1aa24a1821076f5b8
common/Graylog: assert(!m_hostname.empty()) in Graylog

to verify that we always have a non-empty host field in log entry sent
to graylog per the spec of GrayLog. see https://docs.graylog.org/en/4.0/pages/gelf.html#gelf-payload-specification

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/Graylog.cc