normalizedPriority = 2;
logger.info("Prowl-Notification priority '{}' is invalid - normalized value to '{}'", priority, normalizedPriority);
}
if (ProwlActionService.isProperlyConfigured) {
ProwlClient client = new ProwlClient();
if (StringUtils.isNotBlank(Prowl.url)) {
client.setProwlUrl(Prowl.url);
}
ProwlEvent event = new DefaultProwlEvent(
apiKey, "openhab", subject,
message, normalizedPriority);
try {
String returnMessage = client.pushEvent(event);
logger.info(returnMessage);
success = true;
}
catch (ProwlException pe) {
logger.error("pushing prowl event throws exception", pe);