diff options
author | Joakim Erdfelt <joakime@apache.org> | 2008-02-21 07:31:33 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2008-02-21 07:31:33 +0000 |
commit | 5f27f502ff339508a20b16f4f3822cbee07eb5ba (patch) | |
tree | fe2d5724bd1df2122e1114880da0df0ceb3b6ac4 /archiva-base/archiva-common | |
parent | 45fca34ec2639fe060df1bc459b858811b598ec5 (diff) | |
download | archiva-5f27f502ff339508a20b16f4f3822cbee07eb5ba.tar.gz archiva-5f27f502ff339508a20b16f4f3822cbee07eb5ba.zip |
MRM-708 - Migrate from Plexus Logging to Slf4J
* Finishing up AbstractLogEnabled conversions to Slf4J.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@629704 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base/archiva-common')
-rw-r--r-- | archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/Checksums.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/Checksums.java b/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/Checksums.java index 11b16f9f4..8abdfb88e 100644 --- a/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/Checksums.java +++ b/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/Checksums.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; */ public class Checksums { - private static final Logger LOG = LoggerFactory.getLogger(Checksums.class); + private Logger log = LoggerFactory.getLogger(Checksums.class); /** * @plexus.requirement role-hint="sha1" @@ -66,7 +66,7 @@ public class Checksums // Both files missing is a failure. if ( !sha1File.exists() && !md5File.exists() ) { - LOG.error( "File " + file.getPath() + " has no checksum files (sha1 or md5)." ); + log.error( "File " + file.getPath() + " has no checksum files (sha1 or md5)." ); checksPass = false; } @@ -75,7 +75,7 @@ public class Checksums // Bad sha1 checksum is a failure. if ( !validateChecksum( sha1File, "sha1" ) ) { - LOG.warn( "SHA1 is incorrect for " + file.getPath() ); + log.warn( "SHA1 is incorrect for " + file.getPath() ); checksPass = false; } } @@ -85,7 +85,7 @@ public class Checksums // Bad md5 checksum is a failure. if ( !validateChecksum( md5File, "md5" ) ) { - LOG.warn( "MD5 is incorrect for " + file.getPath() ); + log.warn( "MD5 is incorrect for " + file.getPath() ); checksPass = false; } } @@ -139,12 +139,12 @@ public class Checksums } catch ( DigesterException e ) { - LOG.warn( "Unable to create " + digester.getFilenameExtension() + " file: " + e.getMessage(), e ); + log.warn( "Unable to create " + digester.getFilenameExtension() + " file: " + e.getMessage(), e ); return false; } catch ( IOException e ) { - LOG.warn( "Unable to create " + digester.getFilenameExtension() + " file: " + e.getMessage(), e ); + log.warn( "Unable to create " + digester.getFilenameExtension() + " file: " + e.getMessage(), e ); return false; } } @@ -169,28 +169,28 @@ public class Checksums { if ( checksumFile.isValidChecksum( hashFile ) ) { - LOG.debug( "Valid checksum: " + hashFile.getPath() ); + log.debug( "Valid checksum: " + hashFile.getPath() ); return true; } else { - LOG.debug( "Not valid checksum: " + hashFile.getPath() ); + log.debug( "Not valid checksum: " + hashFile.getPath() ); return createChecksum( localFile, digester ); } } catch ( FileNotFoundException e ) { - LOG.warn( "Unable to find " + ext + " file: " + hashFile.getAbsolutePath(), e ); + log.warn( "Unable to find " + ext + " file: " + hashFile.getAbsolutePath(), e ); return false; } catch ( DigesterException e ) { - LOG.warn( "Unable to process " + ext + " file: " + hashFile.getAbsolutePath(), e ); + log.warn( "Unable to process " + ext + " file: " + hashFile.getAbsolutePath(), e ); return false; } catch ( IOException e ) { - LOG.warn( "Unable to process " + ext + " file: " + hashFile.getAbsolutePath(), e ); + log.warn( "Unable to process " + ext + " file: " + hashFile.getAbsolutePath(), e ); return false; } } @@ -213,27 +213,27 @@ public class Checksums boolean validity = checksumFile.isValidChecksum( hashFile ); if ( validity ) { - LOG.debug( "Valid checksum: " + hashFile.getPath() ); + log.debug( "Valid checksum: " + hashFile.getPath() ); } else { - LOG.debug( "Not valid checksum: " + hashFile.getPath() ); + log.debug( "Not valid checksum: " + hashFile.getPath() ); } return validity; } catch ( FileNotFoundException e ) { - LOG.warn( "Unable to find " + type + " file: " + hashFile.getAbsolutePath(), e ); + log.warn( "Unable to find " + type + " file: " + hashFile.getAbsolutePath(), e ); return false; } catch ( DigesterException e ) { - LOG.warn( "Unable to process " + type + " file: " + hashFile.getAbsolutePath(), e ); + log.warn( "Unable to process " + type + " file: " + hashFile.getAbsolutePath(), e ); return false; } catch ( IOException e ) { - LOG.warn( "Unable to process " + type + " file: " + hashFile.getAbsolutePath(), e ); + log.warn( "Unable to process " + type + " file: " + hashFile.getAbsolutePath(), e ); return false; } } |