diff options
author | Björn Hagemeister | 2014-07-21 14:43:25 +0200 |
---|---|---|
committer | Björn Hagemeister | 2014-07-21 14:43:25 +0200 |
commit | 74b037163dd0afd42895050b09f053108fb49620 (patch) | |
tree | bd47b6b3e77b58530a2287f887df8d9d35ea8979 /src/main/java/org/openslx/filetransfer | |
parent | [thrift] Add flag to UploadInfos to tell satellite if all blocks are valid (diff) | |
download | master-sync-shared-74b037163dd0afd42895050b09f053108fb49620.tar.gz master-sync-shared-74b037163dd0afd42895050b09f053108fb49620.tar.xz master-sync-shared-74b037163dd0afd42895050b09f053108fb49620.zip |
Used log.info() instead of System.out.println().
Diffstat (limited to 'src/main/java/org/openslx/filetransfer')
-rw-r--r-- | src/main/java/org/openslx/filetransfer/Downloader.java | 6 | ||||
-rw-r--r-- | src/main/java/org/openslx/filetransfer/Uploader.java | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/openslx/filetransfer/Downloader.java b/src/main/java/org/openslx/filetransfer/Downloader.java index 542e58e..c860f5e 100644 --- a/src/main/java/org/openslx/filetransfer/Downloader.java +++ b/src/main/java/org/openslx/filetransfer/Downloader.java @@ -274,17 +274,17 @@ public class Downloader if ( splitted[0] != null && splitted[0].equals( "TOKEN" ) ) { if ( splitted[1] != null ) TOKEN = splitted[1]; - System.out.println( "TOKEN: " + TOKEN ); + log.info( "TOKEN: " + TOKEN ); } else if ( splitted[0].equals( "RANGE" ) ) { if ( splitted[1] != null ) RANGE = splitted[1]; - System.out.println( "RANGE: '" + RANGE + "'" ); + log.info( "RANGE: '" + RANGE + "'" ); } else if ( splitted[0].equals( "ERROR" ) ) { if ( splitted[1] != null ) ERROR = splitted[1]; - System.err.println( "ERROR: " + ERROR ); + log.info( "ERROR: " + ERROR ); return false; } } diff --git a/src/main/java/org/openslx/filetransfer/Uploader.java b/src/main/java/org/openslx/filetransfer/Uploader.java index 825c75e..60b9dd6 100644 --- a/src/main/java/org/openslx/filetransfer/Uploader.java +++ b/src/main/java/org/openslx/filetransfer/Uploader.java @@ -256,17 +256,17 @@ public class Uploader if ( splitted[0] != null && splitted[0].equals( "TOKEN" ) ) { if ( splitted[1] != null ) TOKEN = splitted[1]; - System.out.println( "TOKEN: " + TOKEN ); + log.info( "TOKEN: " + TOKEN ); } else if ( splitted[0].equals( "RANGE" ) ) { if ( splitted[1] != null ) RANGE = splitted[1]; - System.out.println( "RANGE: " + RANGE ); + log.info( "RANGE: " + RANGE ); } else if ( splitted[0].equals( "ERROR" ) ) { if ( splitted[1] != null ) ERROR = splitted[1]; - System.err.println( "ERROR: " + ERROR ); + log.info( "ERROR: " + ERROR ); return false; } } |