From da107994474d9fcb672501e3905cee6595ff0c6a Mon Sep 17 00:00:00 2001 From: Daniel Trebbien Date: Sun, 30 Jul 2017 13:29:29 -0700 Subject: [PATCH] Fix two incorrect SLF4J logger calls These issues were found by SLF4J Helper for NetBeans IDE: http://plugins.netbeans.org/plugin/72557/ --- .../repository/DefaultRepositoryArchivaTaskScheduler.java | 2 +- .../main/java/org/apache/archiva/webdav/ArchivaDavResource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.39.5