From 7a56113d69c5a56ea333f87c5d67cd5a371aa090 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 7 Mar 2025 18:02:11 +0800 Subject: fix: session not disconnected properly perf: use server sockfd directly instead of a dupe of it --- src/log.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/log.hpp') 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 #include -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 -void log(FILE* _stream, eFormatType type, std::format_string fmt, Args &&...args) { - log(_stream, type, std::format(fmt, std::forward(args)...)); +void log(FILE *_stream, eFormatType type, std::format_string fmt, Args &&...args) { + log(_stream, type, std::format(fmt, std::forward(args)...)); } template void log(eFormatType type, std::format_string fmt, Args &&...args) { - log(stdout, type, std::format(fmt, std::forward(args)...)); + log(stdout, type, std::format(fmt, std::forward(args)...)); } -- cgit v1.2.3