mirror of https://github.com/apache/archiva.git
Removed / commented usage of System.out and System.err... replaced them with logger when available.
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@384405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a6fbd5217
commit
0853f5314d
|
@ -123,7 +123,7 @@ public class DefaultArtifactDiscoverer
|
||||||
}
|
}
|
||||||
catch ( Exception e )
|
catch ( Exception e )
|
||||||
{
|
{
|
||||||
System.out.println( "error reading file: " + filename );
|
getLogger().info( "error reading file: " + filename );
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class LegacyArtifactDiscoverer
|
||||||
}
|
}
|
||||||
catch ( Exception e )
|
catch ( Exception e )
|
||||||
{
|
{
|
||||||
System.out.println( "error reading file: " + filename );
|
getLogger().info( "error reading file: " + filename );
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class MavenProxyPropertyLoader
|
||||||
|
|
||||||
if ( rcc.getPrefix().length() == 0 )
|
if ( rcc.getPrefix().length() == 0 )
|
||||||
{
|
{
|
||||||
System.err.println( "Using an empty 'prefix' is deprecated behaviour. Please set a prefix." );
|
//System.err.println( "Using an empty 'prefix' is deprecated behaviour. Please set a prefix." );
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class DiscovererJob
|
||||||
public void execute( JobExecutionContext context )
|
public void execute( JobExecutionContext context )
|
||||||
throws JobExecutionException
|
throws JobExecutionException
|
||||||
{
|
{
|
||||||
System.out.println( "Start execution of DiscovererJob.." );
|
getLogger().info( "Start execution of DiscovererJob.." );
|
||||||
JobDataMap dataMap = context.getJobDetail().getJobDataMap();
|
JobDataMap dataMap = context.getJobDetail().getJobDataMap();
|
||||||
|
|
||||||
//configuration values specified in properties file
|
//configuration values specified in properties file
|
||||||
|
@ -149,7 +149,7 @@ public class DiscovererJob
|
||||||
me.printStackTrace();
|
me.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println( "[DiscovererJob] DiscovererJob has finished executing." );
|
getLogger().info( "[DiscovererJob] DiscovererJob has finished executing." );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue