Skip to content

Commit 4415533

Browse files
Concatenate Strings
Signed-off-by: Lehmann_Fabian <fabian.lehmann@informatik.hu-berlin.de>
1 parent 5c87ae4 commit 4415533

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/cws/k8s/scheduler/scheduler/la2/copystrategy/LaListener.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public void onClose( int exitCode, String reason ) {
6161

6262
@Override
6363
public void onFailure( Throwable t, Response failureResponse ) {
64-
log.info( name + " failed, output: ", t );
65-
log.info( name + " Exec Output: {} ", out );
66-
log.info( name + " Exec Error Output: {} ", error );
64+
log.info( "{} failed, output: ", name, t );
65+
log.info( "{} Exec Output: {} ", name, out );
66+
log.info( "{} Exec Error Output: {} ", name, error );
6767
close();
6868
logCopyTask.copy( nodeTaskFilesAlignment.task.getConfig().getName(), nodeTaskFilesAlignment.node.getName(), copyTask.getInputFiles().size(), "failed" );
6969
}
@@ -72,13 +72,13 @@ public void onFailure( Throwable t, Response failureResponse ) {
7272
public void onExit( int exitCode, Status reason ) {
7373
finished = true;
7474
if ( exitCode != 0 ) {
75-
log.info( name + " was finished exitCode = {}, reason = {}", exitCode, reason );
76-
log.info( name + " Exec Output: {} ", out );
77-
log.info( name + " Exec Error Output: {} ", error );
75+
log.info( "{} was finished exitCode = {}, reason = {}", name, exitCode, reason );
76+
log.info( "{} Exec Output: {} ", name, out );
77+
log.info( "{} Exec Error Output: {} ", name, error );
7878
} else {
79-
log.info( name + " was finished successfully" );
80-
log.debug( name + " Exec Output: {} ", out );
81-
log.debug( name + " Exec Error Output: {} ", error );
79+
log.info( "{} was finished successfully", name );
80+
log.debug( "{} Exec Output: {} ", name, out );
81+
log.debug( "{} Exec Error Output: {} ", name, error );
8282
}
8383
scheduler.copyTaskFinished( copyTask, exitCode == 0 );
8484
close();

0 commit comments

Comments
 (0)