From 064f1701ee6003fc16be56dd601c39d9264ccda6 Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 20 Jun 2026 08:04:55 -0300 Subject: [PATCH] chore: rename log-sink to log-sink-cout --- src/unlocker/{log-sink.h => log-sink-cout.h} | 3 +++ src/unlocker/main.cpp | 2 +- src/unlocker/proxy-configurator.cpp | 2 +- src/unlocker/spoofer.cpp | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) rename src/unlocker/{log-sink.h => log-sink-cout.h} (86%) diff --git a/src/unlocker/log-sink.h b/src/unlocker/log-sink-cout.h similarity index 86% rename from src/unlocker/log-sink.h rename to src/unlocker/log-sink-cout.h index bd69dcb..0c30cb8 100644 --- a/src/unlocker/log-sink.h +++ b/src/unlocker/log-sink-cout.h @@ -11,6 +11,9 @@ class ConOutSink : public ILogSink public: virtual void receiveLog(LogType type, std::string_view loggerName, std::string_view msg) override { +#ifndef _DEBUG + if (type == LogType::VERBOSE) return; +#endif std::cout << "[" << loggerName << "] " << seallib::getLogTypeColor(type) << "[" << seallib::getLogTypeName(type) << "]" << "\x1b[0m " << msg << std::endl; diff --git a/src/unlocker/main.cpp b/src/unlocker/main.cpp index 507cdca..a39013e 100644 --- a/src/unlocker/main.cpp +++ b/src/unlocker/main.cpp @@ -2,7 +2,7 @@ #include "tray-icon.h" #include "utils.h" #include "spoofer.h" -#include "log-sink.h" +#include "log-sink-cout.h" #include "proxy-configurator.h" #include "cache-cleaner.h" diff --git a/src/unlocker/proxy-configurator.cpp b/src/unlocker/proxy-configurator.cpp index bf2e3d5..c7fe86d 100644 --- a/src/unlocker/proxy-configurator.cpp +++ b/src/unlocker/proxy-configurator.cpp @@ -1,7 +1,7 @@ #include "proxy-configurator.h" #include "win-platform.h" -#include "log-sink.h" +#include "log-sink-cout.h" #include #include diff --git a/src/unlocker/spoofer.cpp b/src/unlocker/spoofer.cpp index 4c4d5c5..3051026 100644 --- a/src/unlocker/spoofer.cpp +++ b/src/unlocker/spoofer.cpp @@ -1,6 +1,6 @@ #include "spoofer.h" #include "utils.h" -#include "log-sink.h" +#include "log-sink-cout.h" #include #include