Commit c9c801e1 authored by chiaming2000's avatar chiaming2000
Browse files

Java client: log a warning message with status code and status message

when received an unsolicitated message from the drive.

Applications may also set a connection listener on ClientConfiguration
to be notified when an unsolicitated message is received.   
parent 998716b0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -235,7 +235,12 @@ public class MessageHandler implements ClientMessageService, Runnable {

            if (message.getMessage().getAuthType() == AuthType.UNSOLICITEDSTATUS) {

                logger.warning("received unsolicited message: " + message);
                /**
                 * log unsolicited status message.
                 */
                logger.warning("received unsolicited message: "
                        + message.getCommand().getStatus().getCode() + ":"
                        + message.getCommand().getStatus().getStatusMessage());

                /**
                 * XXX chiaming 01/28/2015: The only possible behavior from the