diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 18:16:21 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 18:16:21 +1200 |
commit | fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63 (patch) | |
tree | 76aa5439b98e5e182164e0baf3b64add81af187e /src/org/traccar/smpp | |
parent | dc3559a9cc49206e87f26349b8f8a41398f299b5 (diff) | |
download | trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.tar.gz trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.tar.bz2 trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.zip |
Fix logging level issues
Diffstat (limited to 'src/org/traccar/smpp')
-rw-r--r-- | src/org/traccar/smpp/ClientSmppSessionHandler.java | 2 | ||||
-rw-r--r-- | src/org/traccar/smpp/SmppClient.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/smpp/ClientSmppSessionHandler.java b/src/org/traccar/smpp/ClientSmppSessionHandler.java index 55c6cccc3..4c5522c14 100644 --- a/src/org/traccar/smpp/ClientSmppSessionHandler.java +++ b/src/org/traccar/smpp/ClientSmppSessionHandler.java @@ -51,7 +51,7 @@ public class ClientSmppSessionHandler extends DefaultSmppSessionHandler { String sourceAddress = ((DeliverSm) request).getSourceAddress().getAddress(); String message = CharsetUtil.decode(((DeliverSm) request).getShortMessage(), smppClient.mapDataCodingToCharset(((DeliverSm) request).getDataCoding())); - LOGGER.debug("SMS Message Received: " + message.trim() + ", Source Address: " + sourceAddress); + LOGGER.info("SMS Message Received: " + message.trim() + ", Source Address: " + sourceAddress); boolean isDeliveryReceipt; if (smppClient.getDetectDlrByOpts()) { diff --git a/src/org/traccar/smpp/SmppClient.java b/src/org/traccar/smpp/SmppClient.java index c9869cb9c..d4f201871 100644 --- a/src/org/traccar/smpp/SmppClient.java +++ b/src/org/traccar/smpp/SmppClient.java @@ -211,7 +211,7 @@ public class SmppClient implements SmsManager { private void destroySession() { if (smppSession != null) { - LOGGER.debug("Cleaning up SMPP session... "); + LOGGER.info("Cleaning up SMPP session... "); smppSession.destroy(); smppSession = null; } @@ -242,7 +242,7 @@ public class SmppClient implements SmsManager { submit.setDestAddress(new Address(destTon, destNpi, destAddress)); SubmitSmResp submitResponce = getSession().submit(submit, submitTimeout); if (submitResponce.getCommandStatus() == SmppConstants.STATUS_OK) { - LOGGER.debug("SMS submitted, message id: " + submitResponce.getMessageId()); + LOGGER.info("SMS submitted, message id: " + submitResponce.getMessageId()); } else { throw new IllegalStateException(submitResponce.getResultMessage()); } |