Skip to content

Commit 3f9e6d9

Browse files
committed
Logging
1 parent a048d91 commit 3f9e6d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

netcat/src/main/java/com/github/dddpaul/netcat/NetCat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected void onProgressUpdate( String... values )
116116
protected void onPostExecute( Result result )
117117
{
118118
if( result.exception == null ) {
119-
Log.d( CLASS_NAME, String.format( "%s operation is completed", result.op ) );
119+
Log.i( CLASS_NAME, String.format( "%s operation (%s) is completed", result.op, result.proto ) );
120120
listener.netCatIsCompleted( result );
121121
} else {
122122
Log.e( CLASS_NAME, result.getErrorMessage() );

netcat/src/main/java/com/github/dddpaul/netcat/UdpNetCat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected Result doInBackground( String... params )
6666
Op op = Op.valueOf( params[0] );
6767
Result result = new Result( op, Proto.UDP );
6868
try {
69-
Log.d( CLASS_NAME, String.format( "Executing %s operation (UDP)", op ) );
69+
Log.i( CLASS_NAME, String.format( "Executing %s operation (UDP)", op ) );
7070
int port;
7171
switch( op ) {
7272
case CONNECT:
@@ -75,7 +75,7 @@ protected Result doInBackground( String... params )
7575
channel = DatagramChannel.open();
7676
channel.connect( new InetSocketAddress( host, port ) );
7777
channel.configureBlocking( false );
78-
Log.i( CLASS_NAME, String.format( "Connected to %s (UDP)", channel.socket().getRemoteSocketAddress() ) );
78+
Log.d( CLASS_NAME, String.format( "Connected to %s (UDP)", channel.socket().getRemoteSocketAddress() ) );
7979
result.object = channel.socket();
8080
break;
8181
case LISTEN:

0 commit comments

Comments
 (0)