diff --git a/example/example.cpp b/example/example.cpp index 586adf23..03c3eb4b 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -378,15 +378,8 @@ void replace_default_logger_example() { spdlog::debug("This message should not be displayed!"); spdlog::set_level(spdlog::level::trace); spdlog::debug("This message should be displayed.."); - spdlog::set_default_logger(old_logger); } - -// Mapped Diagnostic Context (MDC) is a map that stores key-value pairs (string values) in thread -// local storage. Each thread maintains its own MDC, which loggers use to append diagnostic -// information to log outputs. Note: it is not supported in asynchronous mode due to its reliance on -// thread-local storage. - #ifndef SPDLOG_NO_TLS #include "spdlog/mdc.h" void mdc_example() { diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h index 53a9d7a2..aa4f66ac 100644 --- a/include/spdlog/details/tcp_client-windows.h +++ b/include/spdlog/details/tcp_client-windows.h @@ -42,7 +42,6 @@ class tcp_client { } public: - // Added timeout_ms parameter (in milliseconds) void connect(const std::string &host, int port, int timeout_sec) { if (is_connected()) { close(); diff --git a/include/spdlog/details/tcp_client.h b/include/spdlog/details/tcp_client.h index ea878c13..d7b97386 100644 --- a/include/spdlog/details/tcp_client.h +++ b/include/spdlog/details/tcp_client.h @@ -90,7 +90,7 @@ public: } // set TCP_NODELAY - int enable_flag = 1; + int enable_flag = 1; ::setsockopt(socket_, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast(&enable_flag), sizeof(enable_flag));