WHAR-1397 Removes extraneous debug traces

This commit is contained in:
Jason T Alborough
2018-08-13 13:51:23 -04:00
parent 40dcca0e8d
commit 0d5c93bbde
4 changed files with 150 additions and 150 deletions

View File

@@ -27,24 +27,24 @@ namespace PepperDash.Essentials {
var typeName = dc.Type.ToLower(); var typeName = dc.Type.ToLower();
var groupName = dc.Group.ToLower(); var groupName = dc.Group.ToLower();
Debug.Console(0, "Name {0}, Key {1}, Type {2}, Properties {3}", name, key, type, properties.ToString()); Debug.Console(2, "Name {0}, Key {1}, Type {2}, Properties {3}", name, key, type, properties.ToString());
if (typeName == "essentialdm") if (typeName == "essentialdm")
{ {
return new EssentialDM(key, name, properties); return new EssentialDM(key, name, properties);
} }
else if (typeName == "essentialcomm") else if (typeName == "essentialcomm")
{ {
Debug.Console(0, "Launch Essential Comm"); Debug.Console(2, "Launch Essential Comm");
return new EssentialComm(key, name, properties); return new EssentialComm(key, name, properties);
} }
else if (typeName == "essentialdsp") else if (typeName == "essentialdsp")
{ {
Debug.Console(0, "Launch EssentialDsp"); Debug.Console(2, "Launch EssentialDsp");
return new EssentialDsp(key, name, properties); return new EssentialDsp(key, name, properties);
} }
else if (typeName == "essentialstvone") else if (typeName == "essentialstvone")
{ {
Debug.Console(0, "Launch essentialstvone"); Debug.Console(2, "Launch essentialstvone");
return new EssentialsTVOne(key, name, properties); return new EssentialsTVOne(key, name, properties);
} }
return null; return null;
@@ -58,7 +58,7 @@ namespace PepperDash.Essentials {
Eisc = new ThreeSeriesTcpIpEthernetIntersystemCommunications(Ipid, "127.0.0.2", Global.ControlSystem); Eisc = new ThreeSeriesTcpIpEthernetIntersystemCommunications(Ipid, "127.0.0.2", Global.ControlSystem);
Eisc.Register(); Eisc.Register();
Eisc.SigChange += Eisc_SigChange; Eisc.SigChange += Eisc_SigChange;
Debug.Console(0, "BridgeApiEisc Created at Ipid {0}", ipid); Debug.Console(2, "BridgeApiEisc Created at Ipid {0}", ipid);
} }
void Eisc_SigChange(object currentDevice, Crestron.SimplSharpPro.SigEventArgs args) { void Eisc_SigChange(object currentDevice, Crestron.SimplSharpPro.SigEventArgs args) {
if (Debug.Level >= 1) if (Debug.Level >= 1)

View File

@@ -92,7 +92,7 @@ namespace PepperDash.Essentials {
var ApiEisc = new BridgeApiEisc(Ipid); var ApiEisc = new BridgeApiEisc(Ipid);
Apis.Add(ApiEisc); Apis.Add(ApiEisc);
foreach (var commConnection in CommDictionary) { foreach (var commConnection in CommDictionary) {
Debug.Console(0, "Joining Api{0} to comm {1}", Ipid, commConnection.Key); Debug.Console(2, "Joining Api{0} to comm {1}", Ipid, commConnection.Key);
var tempComm = commConnection.Value; var tempComm = commConnection.Value;
var tempJoin = (uint)commConnection.Key; var tempJoin = (uint)commConnection.Key;
EssentialComApiMap ApiMap = new EssentialComApiMap(ApiEisc, (uint)tempJoin); EssentialComApiMap ApiMap = new EssentialComApiMap(ApiEisc, (uint)tempJoin);
@@ -121,11 +121,11 @@ namespace PepperDash.Essentials {
Debug.Console(0, "Name {0} Activated", this.Name); Debug.Console(2, "Name {0} Activated", this.Name);
return true; return true;
} }
catch (Exception e) { catch (Exception e) {
Debug.Console(0, "BRidge {0}", e); Debug.Console(0, "Bridge {0}", e);
return false; return false;
} }
} }

View File

@@ -83,7 +83,7 @@ namespace PepperDash.Essentials {
return true; return true;
} }
catch (Exception e) { catch (Exception e) {
Debug.Console(2, "BRidge {0}", e); Debug.Console(0, "Bridge {0}", e);
return false; return false;
} }
} }

View File

@@ -68,7 +68,7 @@ namespace PepperDash.Essentials
return true; return true;
} }
catch (Exception e) { catch (Exception e) {
Debug.Console(2, "BRidge {0}", e); Debug.Console(0, "Bridge {0}", e);
return false; return false;
} }
} }