mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-06 00:05:05 +00:00
Log error and notices when necessary
This commit is contained in:
@@ -74,10 +74,16 @@ namespace PepperDash.Essentials.Bridges
|
||||
}
|
||||
}
|
||||
Debug.Console(1, this, "Devices Linked.");
|
||||
|
||||
|
||||
var registerResult = Eisc.Register();
|
||||
|
||||
Debug.Console(2, this, Debug.ErrorLogLevel.Notice, "Registration result: {0}", registerResult);
|
||||
if (registerResult != eDeviceRegistrationUnRegistrationResponse.Success)
|
||||
{
|
||||
Debug.Console(2, this, Debug.ErrorLogLevel.Error, "Registration result: {0}", registerResult);
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "EISC registration successful");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -122,7 +122,13 @@ namespace PepperDash.Essentials.Core.Bridges
|
||||
|
||||
var registerResult = Eisc.Register();
|
||||
|
||||
Debug.Console(2, this, Debug.ErrorLogLevel.Notice, "Registration result: {0}", registerResult);
|
||||
if (registerResult != eDeviceRegistrationUnRegistrationResponse.Success)
|
||||
{
|
||||
Debug.Console(2, this, Debug.ErrorLogLevel.Error, "Registration result: {0}", registerResult);
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "EISC registration successful");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user