mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-19 20:17:25 -05:00
#1781 Radio Reference API - adds logging to log results of test connection or user login attempt for troubleshooting RR enterprise user login issues. (#1943)
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -192,10 +192,14 @@ public class RadioReference
|
|||||||
throw new RadioReferenceException("The Radio Reference service is not providing user account details");
|
throw new RadioReferenceException("The Radio Reference service is not providing user account details");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mLog.info("Radio Reference Test Connection Result - user [" + userName + "] expiration [" + ui.getExpirationDate() + "]");
|
||||||
|
|
||||||
return CheckExpDate(ui.getExpirationDate());
|
return CheckExpDate(ui.getExpirationDate());
|
||||||
}
|
}
|
||||||
catch (RadioReferenceException rre)
|
catch (RadioReferenceException rre)
|
||||||
{
|
{
|
||||||
|
mLog.error("Radio Reference Test Connection Failed - user [" + userName + "] error [" + rre.getMessage() + "]");
|
||||||
|
|
||||||
if (rre.hasFault())
|
if (rre.hasFault())
|
||||||
{
|
{
|
||||||
Fault fault = rre.getFault();
|
Fault fault = rre.getFault();
|
||||||
@@ -297,6 +301,18 @@ public class RadioReference
|
|||||||
availableProperty().set(false);
|
availableProperty().set(false);
|
||||||
premiumAccountProperty().set(false);
|
premiumAccountProperty().set(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(userInfo != null)
|
||||||
|
{
|
||||||
|
mLog.info("Radio Reference Account - User:" + userInfo.getUserName() +
|
||||||
|
" Expires:" + userInfo.getExpirationDate() +
|
||||||
|
" Login Status:" + mLoginStatus +
|
||||||
|
" Premium Access Enabled:" + premiumAccountProperty().get());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mLog.info("Radio Reference API did not provide a response from getUserData method call - premium access is disabled");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch(RadioReferenceException rre)
|
catch(RadioReferenceException rre)
|
||||||
{
|
{
|
||||||
@@ -304,7 +320,7 @@ public class RadioReference
|
|||||||
mLoginStatus = LoginStatus.UNKNOWN;
|
mLoginStatus = LoginStatus.UNKNOWN;
|
||||||
availableProperty().set(false);
|
availableProperty().set(false);
|
||||||
premiumAccountProperty().set(false);
|
premiumAccountProperty().set(false);
|
||||||
|
mLog.error("Error checking radio reference premium account status. Disabling premium access. Error: " + rre.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user