Skip to content

Commit

Permalink
Merge pull request #15 from PepperDash/hotfix/reduced-debug
Browse files Browse the repository at this point in the history
Hotfix/reduced debug
  • Loading branch information
andrew-welker authored Nov 13, 2024
2 parents fb60ed0 + 2d3ccf6 commit 27be684
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/SonyBraviaDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using Serilog.Events;
using TwoWayDisplayBase = PepperDash.Essentials.Devices.Common.Displays.TwoWayDisplayBase;

namespace SonyBraviaEpi
Expand Down Expand Up @@ -388,8 +389,6 @@ public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, E

private int _rawVolume;



public BoolFeedback MuteFeedback { get; private set; }

public IntFeedback VolumeLevelFeedback { get; private set; }
Expand Down Expand Up @@ -833,7 +832,7 @@ private void ProcessRs232Response(byte[] response)

// Debug.Console(DebugLevels.DebugLevel, this, "ProcessRs232Response: {0}", ComTextHelper.GetEscapedText(buffer));

Debug.LogMessage(Serilog.Events.LogEventLevel.Information, "ProcessRs232Response: {lastCommand}:{response}", this, ComTextHelper.GetEscapedText(_lastCommand), ComTextHelper.GetEscapedText(buffer));
// Debug.LogMessage(Serilog.Events.LogEventLevel.Information, "ProcessRs232Response: {lastCommand}:{response}", this, ComTextHelper.GetEscapedText(_lastCommand), ComTextHelper.GetEscapedText(buffer));

//it starts a valid response
if (buffer.Length >= 3)
Expand Down Expand Up @@ -876,10 +875,7 @@ private void ProcessRs232Response(byte[] response)
}
catch (Exception ex)
{
Debug.Console(DebugLevels.TraceLevel, this, Debug.ErrorLogLevel.Error, "ProcessRs232Response Exception: {0}", ex.Message);
Debug.Console(DebugLevels.DebugLevel, this, Debug.ErrorLogLevel.Error, "ProcessRs232Response Exception Stack Trace: {0}", ex.StackTrace);
if (ex.InnerException != null)
Debug.Console(DebugLevels.ErrorLevel, this, Debug.ErrorLogLevel.Error, "ProcessRs232Response Inner Exception: {0}", ex.InnerException);
Debug.LogMessage(ex, "Caught an exception in ProcessRs232Response: {0}", this, ex.Message);
}
}

Expand Down

0 comments on commit 27be684

Please sign in to comment.