]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/Journald: include msg/msg_fmt.h
authorKefu Chai <tchaikov@gmail.com>
Sat, 27 Aug 2022 02:27:01 +0000 (10:27 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 27 Aug 2022 15:59:24 +0000 (23:59 +0800)
so we can use the formatter defined for `entity_name_t`. in fmtlib v9,
it is required to define a specialization for the formatted type even
the type has an override of operator<<(). now that we already have a
formatter for `entity_name_t`, let's just use it.

this change should address the FTBFS when building with fmtlib v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/Journald.cc

index e3ae2d358f402bfed93a41ed1a123ca58ae1999a..a1321c7eea8e6de64e0d7eb5915d62375a5381b0 100644 (file)
@@ -21,6 +21,7 @@
 #include "common/LogEntry.h"
 #include "log/Entry.h"
 #include "log/SubsystemMap.h"
+#include "msg/msg_fmt.h"
 
 
 namespace ceph::logging {