1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-15 09:17:57 +00:00

Compare commits

...

8 Commits

Author SHA1 Message Date
Gabi Melman
7560cacb3f
Update .travis.yml 2021-06-27 00:31:34 +03:00
Gabi Melman
3cd9bcdab9
Update dup_filter_sink.h 2021-06-27 00:21:03 +03:00
Gabi Melman
32f1efdc99
Update dup_filter_sink.h 2021-06-27 00:11:31 +03:00
Gabi Melman
bcc9f03457
Update .travis.yml 2021-06-27 00:01:44 +03:00
Gabi Melman
4c845bf02b
Update dup_filter_sink.h 2021-06-26 23:40:11 +03:00
Gabi Melman
c727864393
Update .travis.yml 2021-06-26 23:25:27 +03:00
Gabi Melman
4548573a75
Update .travis.yml 2021-06-26 23:18:22 +03:00
Gabi Melman
385246730d
Update .travis.yml 2021-06-26 23:14:26 +03:00
2 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@
sudo: required
language: cpp
# gcc 4.8
# gcc t
addons: &gcc48
apt:
packages:
@ -52,7 +52,7 @@ matrix:
- env: GCC_VERSION=4.8 BUILD_TYPE=Release CPP=11
os: linux
addons: *gcc48
# Test gcc-7: C++11, Build=Debug/Release
- env: GCC_VERSION=7 BUILD_TYPE=Release CPP=11
os: linux
addons: *gcc7
@ -81,7 +81,7 @@ matrix:
dist: bionic
addons: *clang10
# Test clang-10.0: C++11, Build=Debug/Release
# Test clang-10.0: C++17, Build=Debug/Release
- env: CLANG_VERSION=10 BUILD_TYPE=Release CPP=17 ASAN=Off
os: linux
dist: bionic

View File

@ -7,6 +7,7 @@
#include <spdlog/details/null_mutex.h>
#include <spdlog/details/log_msg.h>
#include <iterator>
#include <mutex>
#include <string>
#include <chrono>
@ -63,7 +64,7 @@ protected:
if (skip_counter_ > 0)
{
memory_buf_t buf;
fmt::format_to(std::back_inserter(buf), "Skipped {} duplicate messages..", skip_counter_);
fmt::format_to(buf, "Skipped {} duplicate messages..", skip_counter_);
details::log_msg skipped_msg{msg.logger_name, level::info, string_view_t{buf.data(), buf.size()}};
dist_sink<Mutex>::sink_it_(skipped_msg);
}