diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-07 18:02:11 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:44:57 +0800 |
| commit | 7a56113d69c5a56ea333f87c5d67cd5a371aa090 (patch) | |
| tree | 7b3873aabf9d35abeac7e4970935cb9f185ccaa7 /src/log.hpp | |
| parent | 3972c5f76483bf5f64bcf19685ee391c4d6b1a9b (diff) | |
fix: session not disconnected properly
perf: use server sockfd directly instead of a dupe of it
Diffstat (limited to 'src/log.hpp')
| -rw-r--r-- | src/log.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/log.hpp b/src/log.hpp index 8cfc917..5e5f1d3 100644 --- a/src/log.hpp +++ b/src/log.hpp @@ -4,20 +4,20 @@ #include <print> #include <string> -inline void log(FILE* _stream, eFormatType type, std::string str) { - std::println(_stream, "{}", NFormatter::fmt(type, str)); +inline void log(FILE *_stream, eFormatType type, std::string str) { + std::println(_stream, "{}", NFormatter::fmt(type, str)); } inline void log(eFormatType type, std::string str) { - log(stdout, type, str); + log(stdout, type, str); } template <typename... Args> -void log(FILE* _stream, eFormatType type, std::format_string<Args...> fmt, Args &&...args) { - log(_stream, type, std::format(fmt, std::forward<Args>(args)...)); +void log(FILE *_stream, eFormatType type, std::format_string<Args...> fmt, Args &&...args) { + log(_stream, type, std::format(fmt, std::forward<Args>(args)...)); } template <typename... Args> void log(eFormatType type, std::format_string<Args...> fmt, Args &&...args) { - log(stdout, type, std::format(fmt, std::forward<Args>(args)...)); + log(stdout, type, std::format(fmt, std::forward<Args>(args)...)); } |
