From fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 15 Sep 2018 18:16:21 +1200 Subject: Fix logging level issues --- src/org/traccar/smpp/ClientSmppSessionHandler.java | 2 +- src/org/traccar/smpp/SmppClient.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/org/traccar/smpp') 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()); } -- cgit v1.2.3