update debug statements to be level 2

This commit is contained in:
Andrew Welker
2020-07-06 12:53:54 -06:00
parent 56e4488087
commit 08a0cdfddd

View File

@@ -190,11 +190,11 @@ namespace PepperDash.Essentials.Core.Bridges
var uo = Eisc.BooleanOutput[join].UserObject as Action<bool>; var uo = Eisc.BooleanOutput[join].UserObject as Action<bool>;
if (uo != null) if (uo != null)
{ {
Debug.Console(1, this, "Executing Action: {0}", uo.ToString()); Debug.Console(2, this, "Executing Action: {0}", uo.ToString());
uo(Convert.ToBoolean(state)); uo(Convert.ToBoolean(state));
} }
else else
Debug.Console(1, this, "User Action is null. Nothing to Execute"); Debug.Console(2, this, "User Action is null. Nothing to Execute");
break; break;
} }
case "analog": case "analog":
@@ -202,27 +202,27 @@ namespace PepperDash.Essentials.Core.Bridges
var uo = Eisc.BooleanOutput[join].UserObject as Action<ushort>; var uo = Eisc.BooleanOutput[join].UserObject as Action<ushort>;
if (uo != null) if (uo != null)
{ {
Debug.Console(1, this, "Executing Action: {0}", uo.ToString()); Debug.Console(2, this, "Executing Action: {0}", uo.ToString());
uo(Convert.ToUInt16(state)); uo(Convert.ToUInt16(state));
} }
else else
Debug.Console(1, this, "User Action is null. Nothing to Execute"); break; Debug.Console(2, this, "User Action is null. Nothing to Execute"); break;
} }
case "serial": case "serial":
{ {
var uo = Eisc.BooleanOutput[join].UserObject as Action<string>; var uo = Eisc.BooleanOutput[join].UserObject as Action<string>;
if (uo != null) if (uo != null)
{ {
Debug.Console(1, this, "Executing Action: {0}", uo.ToString()); Debug.Console(2, this, "Executing Action: {0}", uo.ToString());
uo(Convert.ToString(state)); uo(Convert.ToString(state));
} }
else else
Debug.Console(1, this, "User Action is null. Nothing to Execute"); Debug.Console(2, this, "User Action is null. Nothing to Execute");
break; break;
} }
default: default:
{ {
Debug.Console(1, "Unknown join type. Use digital/serial/analog"); Debug.Console(2, "Unknown join type. Use digital/serial/analog");
break; break;
} }
} }