aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/smpp/SmppClient.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-04 11:03:12 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-04 11:03:12 +0500
commitf882c2e248fdf1eb87f3ccc339e943c74a6c8dff (patch)
tree2ed2b23818d008fa1c7f3c745579196b8f09147f /src/org/traccar/smpp/SmppClient.java
parent6ff73337236f126839e8ce936ba9d201e8a501c7 (diff)
downloadtrackermap-server-f882c2e248fdf1eb87f3ccc339e943c74a6c8dff.tar.gz
trackermap-server-f882c2e248fdf1eb87f3ccc339e943c74a6c8dff.tar.bz2
trackermap-server-f882c2e248fdf1eb87f3ccc339e943c74a6c8dff.zip
- Fixed log messages
- Combine exceptions in Protocol
Diffstat (limited to 'src/org/traccar/smpp/SmppClient.java')
-rw-r--r--src/org/traccar/smpp/SmppClient.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/smpp/SmppClient.java b/src/org/traccar/smpp/SmppClient.java
index 7f004645d..006f86e53 100644
--- a/src/org/traccar/smpp/SmppClient.java
+++ b/src/org/traccar/smpp/SmppClient.java
@@ -149,10 +149,10 @@ public class SmppClient {
smppSession = clientBootstrap.bind(sessionConfig, sessionHandler);
stopReconnectionkTask();
runEnquireLinkTask();
- Log.info("Smpp session connected");
+ Log.info("SMPP session connected");
} catch (SmppTimeoutException | SmppChannelException
| UnrecoverablePduException | InterruptedException error) {
- Log.warning("Unable to connect to smpp server: ", error);
+ Log.warning("Unable to connect to SMPP server: ", error);
}
}
@@ -187,7 +187,7 @@ public class SmppClient {
private void destroySession() {
if (smppSession != null) {
- Log.debug("Cleaning up smpp session... ");
+ Log.debug("Cleaning up SMPP session... ");
smppSession.destroy();
smppSession = null;
}
@@ -206,12 +206,12 @@ public class SmppClient {
submit.setDestAddress(new Address(destTon, destNpi, destAddress));
SubmitSmResp submitResponce = getSession().submit(submit, submitTimeout);
if (submitResponce.getCommandStatus() == SmppConstants.STATUS_OK) {
- Log.debug("SMS submited, msg_id: " + submitResponce.getMessageId());
+ Log.debug("SMS submitted, message id: " + submitResponce.getMessageId());
} else {
throw new IllegalStateException(submitResponce.getResultMessage());
}
} else {
- throw new SmppChannelException("Smpp session is not connected");
+ throw new SmppChannelException("SMPP session is not connected");
}
}