Skip to content

Commit

Permalink
Tired of telling users to turn debug level on
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauceke committed Jan 2, 2022
1 parent 9411c5c commit 7138727
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions LoveMachine.Core/ButtplugController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private IEnumerator RunLoops()
{
for (int boneIndex = 0; boneIndex < GetFemaleBones(girlIndex).Count + 1; boneIndex++)
{
CoreConfig.Logger.LogDebug("Starting monitoring loop in controller " +
CoreConfig.Logger.LogInfo("Starting monitoring loop in controller " +
$"{GetType().Name} for girl index {girlIndex} and bone index " +
$"{boneIndex}.");
HandleCoroutine(Run(girlIndex, boneIndex));
Expand Down Expand Up @@ -280,7 +280,7 @@ private IEnumerator ComputeAnimationOffsets(int girlIndex)
animPhases[GetExactPose(girlIndex, 0)] = closest.Time % 1;
animFreqs[GetExactPose(girlIndex, 0)] =
animFreqs[GetExactPose(girlIndex, closest.BoneIndex + 1)];
CoreConfig.Logger.LogDebug($"Calibration for pose {pose} completed. " +
CoreConfig.Logger.LogInfo($"Calibration for pose {pose} completed. " +
$"{measurements.Count / femaleBones.Count} frames inspected. " +
$"Closest bone index: {closest.BoneIndex}, offset: {closest.Time % 1}, " +
$"frequency: {animFreqs[GetExactPose(girlIndex, 0)]}. ");
Expand Down
10 changes: 5 additions & 5 deletions LoveMachine.Core/ButtplugWsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void Open()
IsConnected = false;
Devices = new List<Device>();
string address = CoreConfig.WebSocketAddress.Value;
CoreConfig.Logger.LogDebug($"Connecting to Intiface server at {address}");
CoreConfig.Logger.LogInfo($"Connecting to Intiface server at {address}");
websocket = new WebSocket(address);
websocket.Opened += OnOpened;
websocket.MessageReceived += OnMessageReceived;
Expand All @@ -46,7 +46,7 @@ public void Close()
{
StopAllCoroutines();
IsConnected = false;
CoreConfig.Logger.LogDebug("Disconnecting from Intiface server.");
CoreConfig.Logger.LogInfo("Disconnecting from Intiface server.");
websocket.Close();
websocket.Dispose();
DeviceManager.SaveDeviceSettings(Devices);
Expand Down Expand Up @@ -126,7 +126,7 @@ from featureIndex in Enumerable.Range(0,

private void OnOpened(object sender, EventArgs e)
{
CoreConfig.Logger.LogDebug("Succesfully connected.");
CoreConfig.Logger.LogInfo("Succesfully connected to Intiface.");
var handshake = new
{
RequestServerInfo = new
Expand Down Expand Up @@ -205,7 +205,7 @@ private void OnMessageReceived(object sender, MessageReceivedEventArgs e)
if (data.ContainsKey("ServerInfo"))
{
IsConnected = true;
CoreConfig.Logger.LogDebug("Handshake successful.");
CoreConfig.Logger.LogInfo("Handshake successful.");
StartScan();
}
}
Expand All @@ -222,7 +222,7 @@ private void OnError(object sender, SuperSocket.ClientEngine.ErrorEventArgs e)

private void LogDevices()
{
CoreConfig.Logger.LogDebug($"List of devices: {JsonMapper.ToJson(Devices)}");
CoreConfig.Logger.LogInfo($"List of devices: {JsonMapper.ToJson(Devices)}");
if (Devices.Count == 0)
{
CoreConfig.Logger.LogMessage("Warning: No devices connected to Intiface.");
Expand Down

0 comments on commit 7138727

Please sign in to comment.