From: Daniel Trebbien Date: Sun, 30 Jul 2017 20:29:29 +0000 (-0700) Subject: Fix two incorrect SLF4J logger calls X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F30%2Fhead;p=archiva.git Fix two incorrect SLF4J logger calls These issues were found by SLF4J Helper for NetBeans IDE: http://plugins.netbeans.org/plugin/72557/ --- diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java index 672869b18..18c775e57 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java @@ -387,7 +387,7 @@ public class DefaultRepositoryArchivaTaskScheduler catch ( RuntimeException e ) { log.error( - "ParseException in repository scanning cron expression, disabling repository scanning for '': {}", + "ParseException in repository scanning cron expression, disabling repository scanning for '{}': {}", repoConfig.getId(), e.getMessage() ); } diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java index 6a14e2130..20bb2cb39 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java @@ -522,7 +522,7 @@ public class ArchivaDavResource triggerAuditEvent( remoteAddr, locator.getRepositoryId(), logicalResource, AuditEvent.COPY_FILE ); } - log.debug( "{}{}' copied to '{}' (current user '{)')", ( isCollection() ? "Directory '" : "File '" ), + log.debug( "{}{}' copied to '{}' (current user '{}')", ( isCollection() ? "Directory '" : "File '" ), getLocalResource().getName(), destination, this.principal ); }