Commit f4d3616c authored by gabime's avatar gabime

Update test_backtrace.cpp

parent c97c025a
...@@ -7,7 +7,7 @@ TEST_CASE("bactrace1", "[bactrace]") ...@@ -7,7 +7,7 @@ TEST_CASE("bactrace1", "[bactrace]")
using spdlog::sinks::test_sink_st; using spdlog::sinks::test_sink_st;
auto test_sink = std::make_shared<test_sink_st>(); auto test_sink = std::make_shared<test_sink_st>();
int backtrace_size = 5; size_t backtrace_size = 5;
spdlog::logger logger("test-backtrace", test_sink); spdlog::logger logger("test-backtrace", test_sink);
logger.set_pattern("%v"); logger.set_pattern("%v");
...@@ -37,7 +37,7 @@ TEST_CASE("bactrace-async", "[bactrace]") ...@@ -37,7 +37,7 @@ TEST_CASE("bactrace-async", "[bactrace]")
auto test_sink = std::make_shared<test_sink_mt>(); auto test_sink = std::make_shared<test_sink_mt>();
using spdlog::details::os::sleep_for_millis; using spdlog::details::os::sleep_for_millis;
int backtrace_size = 5; size_t backtrace_size = 5;
spdlog::init_thread_pool(120, 1); spdlog::init_thread_pool(120, 1);
auto logger = std::make_shared<spdlog::async_logger>("test-bactrace-async", test_sink, spdlog::thread_pool()); auto logger = std::make_shared<spdlog::async_logger>("test-bactrace-async", test_sink, spdlog::thread_pool());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment