Browse Source

Reduce debug log output of Control

pull/4412/head
Gleb Mazovetskiy 4 years ago committed by Anders Jenbo
parent
commit
235451ae5a
  1. 4
      Source/controls/controller_motion.cpp
  2. 4
      Source/controls/plrctrls.cpp

4
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");
}
}

4
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

Loading…
Cancel
Save