File tree 3 files changed +17
-14
lines changed
test/function_test/base_api
3 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 17
17
* under the License.
18
18
*/
19
19
20
- # include < ext/alloc_traits.h>
20
+ // IWYU pragma: no_include <ext/alloc_traits.h>
21
21
#include < rocksdb/status.h>
22
22
#include < rrdb/rrdb_types.h>
23
23
#include < stdint.h>
Original file line number Diff line number Diff line change 24
24
* THE SOFTWARE.
25
25
*/
26
26
27
- # include < ext/alloc_traits.h>
27
+ // IWYU pragma: no_include <ext/alloc_traits.h>
28
28
#include < fmt/core.h>
29
29
#include < fmt/format.h>
30
30
// IWYU pragma: no_include <spdlog/details/file_helper-inl.h>
@@ -70,11 +70,11 @@ enum log_level_t
70
70
};
71
71
72
72
ENUM_BEGIN (log_level_t , LOG_LEVEL_INVALID)
73
- ENUM_REG(LOG_LEVEL_DEBUG)
74
- ENUM_REG(LOG_LEVEL_INFO)
75
- ENUM_REG(LOG_LEVEL_WARNING)
76
- ENUM_REG(LOG_LEVEL_ERROR)
77
- ENUM_REG(LOG_LEVEL_FATAL)
73
+ ENUM_REG(LOG_LEVEL_DEBUG)
74
+ ENUM_REG(LOG_LEVEL_INFO)
75
+ ENUM_REG(LOG_LEVEL_WARNING)
76
+ ENUM_REG(LOG_LEVEL_ERROR)
77
+ ENUM_REG(LOG_LEVEL_FATAL)
78
78
ENUM_END(log_level_t )
79
79
80
80
DSN_DEFINE_string(core,
@@ -241,7 +241,9 @@ std::string log_prefixed_message_func()
241
241
return prefix;
242
242
}
243
243
244
- void pegasus_formatter_flag::format (const spdlog::details::log_msg &, const std::tm &, spdlog::memory_buf_t &dest)
244
+ void pegasus_formatter_flag::format (const spdlog::details::log_msg &,
245
+ const std::tm &,
246
+ spdlog::memory_buf_t &dest)
245
247
{
246
248
const auto prefix = log_prefixed_message_func ();
247
249
dest.append (prefix.data (), prefix.data () + prefix.size ());
Original file line number Diff line number Diff line change 30
30
namespace spdlog {
31
31
namespace details {
32
32
struct log_msg ;
33
- } // namespace details
34
- } // namespace spdlog
33
+ } // namespace details
34
+ } // namespace spdlog
35
35
struct tm ;
36
36
37
- // To keep the log format consistent with the existing log format, we need to print thread pool information in the log,
38
- // spdlog use custom_flag_formatter to implement this feature.
39
- // See https://github.com/gabime/spdlog/wiki/3.-Custom-formatting#extending-spdlog-with-your-own-flags.
37
+ // To keep the log format consistent with the existing log format, we need to print thread pool
38
+ // information in the log, spdlog use custom_flag_formatter to implement this feature. See
39
+ // https://github.com/gabime/spdlog/wiki/3.-Custom-formatting#extending-spdlog-with-your-own-flags.
40
40
class pegasus_formatter_flag : public spdlog ::custom_flag_formatter
41
41
{
42
42
public:
43
- void format (const spdlog::details::log_msg &, const std::tm &, spdlog::memory_buf_t &dest) override ;
43
+ void
44
+ format (const spdlog::details::log_msg &, const std::tm &, spdlog::memory_buf_t &dest) override ;
44
45
std::unique_ptr<custom_flag_formatter> clone () const override ;
45
46
};
46
47
You can’t perform that action at this time.
0 commit comments