import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.Arrays;
-
/**
* @author Olivier Lamy
* @since 1.4-M1
public void transferError( TransferEvent transferEvent )
{
- log.debug( "transferError for resource {} on repository url {}",
- Arrays.asList( transferEvent.getResource().getName(),
- transferEvent.getWagon().getRepository().getUrl() ).toArray( new String[2] ),
- transferEvent.getException() );
+ log.debug( "transferError for resource {} on repository url {}", transferEvent.getResource().getName(),
+ transferEvent.getWagon().getRepository().getUrl(), transferEvent.getException() );
}
public void debug( String s )
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
-import java.util.Arrays;
import java.util.List;
import java.util.Map;
public void transferProgress( TransferEvent transferEvent, byte[] buffer, int length )
{
- log.debug( "transfer of {} : {}/{}",
- Arrays.asList( transferEvent.getResource().getName(), buffer.length, length ).toArray() );
+ log.debug( "transfer of {} : {}/{}", transferEvent.getResource().getName(), buffer.length, length );
}
public void transferCompleted( TransferEvent transferEvent )
public void transferError( TransferEvent transferEvent )
{
- log.info( "error of transfer file {}: {}", Arrays.asList( transferEvent.getResource().getName(),
- transferEvent.getException().getMessage() ).toArray(
- new Object[2] ), transferEvent.getException() );
+ log.info( "error of transfer file {}: {}", transferEvent.getResource().getName(),
+ transferEvent.getException().getMessage(), transferEvent.getException() );
}
public void debug( String message )