From 235451ae5ab51fa61325445c4f35876bece31b37 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 11 Apr 2022 20:20:50 +0100 Subject: [PATCH] Reduce debug log output of Control --- Source/controls/controller_motion.cpp | 4 ++-- Source/controls/plrctrls.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/controls/controller_motion.cpp b/Source/controls/controller_motion.cpp index 81e43f98a..4e769e9d3 100644 --- a/Source/controls/controller_motion.cpp +++ b/Source/controls/controller_motion.cpp @@ -72,9 +72,9 @@ void SetSimulatingMouseWithDpad(bool value) return; SimulatingMouseWithSelectAndDPad = value; if (value) { - LogDebug("Control: begin simulating mouse with D-Pad"); + LogVerbose("Control: begin simulating mouse with D-Pad"); } else { - LogDebug("Control: end simulating mouse with D-Pad"); + LogVerbose("Control: end simulating mouse with D-Pad"); } } diff --git a/Source/controls/plrctrls.cpp b/Source/controls/plrctrls.cpp index 17779ff29..69455f94b 100644 --- a/Source/controls/plrctrls.cpp +++ b/Source/controls/plrctrls.cpp @@ -1507,7 +1507,7 @@ bool ContinueSimulatedMouseEvent(const SDL_Event &event, const ControllerButtonE void LogControlDeviceAndModeChange(ControlTypes newControlDevice, ControlTypes newControlMode) { - if (SDL_LOG_PRIORITY_DEBUG < SDL_LogGetPriority(SDL_LOG_CATEGORY_APPLICATION)) + if (SDL_LOG_PRIORITY_VERBOSE < SDL_LogGetPriority(SDL_LOG_CATEGORY_APPLICATION)) return; if (newControlDevice == ControlDevice && newControlMode == ControlMode) return; @@ -1516,7 +1516,7 @@ void LogControlDeviceAndModeChange(ControlTypes newControlDevice, ControlTypes n return std::string { ControlTypeToString(before) }; return fmt::format("{} -> {}", ControlTypeToString(before), ControlTypeToString(after)); }; - LogDebug("Control: device {}, mode {}", DebugChange(ControlDevice, newControlDevice), DebugChange(ControlMode, newControlMode)); + LogVerbose("Control: device {}, mode {}", DebugChange(ControlDevice, newControlDevice), DebugChange(ControlMode, newControlMode)); } } // namespace