Debug notification preferences

This commit is contained in:
Ahmed Salah Tawfik Ibrahim 2023-12-04 17:12:05 +01:00
parent 39b76c1476
commit b3d7ef8c85
1 changed files with 7 additions and 1 deletions

View File

@ -293,7 +293,13 @@ public class LibClient extends BaseClient{
Validate.isTrue(userid != null, "userid cannot be null");
logger.debug("Request for set user notification preferences");
String thisMethodSignature = "set-notification-preference-lib";
String request = getServiceEndpoint() + thisMethodSignature + "?userid=" + userid;;
String request = getServiceEndpoint() + thisMethodSignature + "?userid=" + userid;
for(NotificationType notificationType: enabledChannels.keySet()){
logger.info("Type: " + notificationType.toString());
for(NotificationChannelType channelType: enabledChannels.get(notificationType)){
logger.info(channelType.toString());
}
}
return HttpClient.post(new GenericType<ResponseBean<Boolean>>(){}, request, enabledChannels);
}