aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-08 13:08:16 +0530
committerSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:30:31 +0530
commit5d43235b3d1fb967c8df269d2bdedb2164e726b2 (patch)
treea97e334fb56bbe21031f687589032bf54c577bd2 /src/main/java
parentcab0b9d1e4dab5d17259cd33fd85fa2f0462a961 (diff)
downloadtrackermap-server-5d43235b3d1fb967c8df269d2bdedb2164e726b2.tar.gz
trackermap-server-5d43235b3d1fb967c8df269d2bdedb2164e726b2.tar.bz2
trackermap-server-5d43235b3d1fb967c8df269d2bdedb2164e726b2.zip
Resloved requested changes
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java
index 0c2be0bd2..c2d568aa8 100644
--- a/src/main/java/org/traccar/sms/SnsSmsClient.java
+++ b/src/main/java/org/traccar/sms/SnsSmsClient.java
@@ -69,10 +69,8 @@ public class SnsSmsClient implements SmsManager {
public void sendMessageAsync(String destAddress, String message, boolean command) {
try {
sendMessageSync(destAddress, message, command);
- } catch (InterruptedException interruptedException) {
- LOGGER.warn("SMS send failed", interruptedException.getMessage());
- } catch (MessageException messageException) {
- LOGGER.warn("SMS send failed", messageException.getMessage());
+ } catch (InterruptedException | MessageException exception) {
+ LOGGER.warn("SMS send failed", exception.getMessage());
}
}
}