From ea6809bb91c1248029fac7fec80307809b528151 Mon Sep 17 00:00:00 2001 From: Wendy Smoak Date: Sat, 17 May 2008 17:39:25 +0000 Subject: [PATCH] [MRM-810] Log the successful upload. Needs to be fixed to write to audit.log in the correct format instead. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@657406 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/archiva/web/action/UploadAction.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java index 0efc1f37a..9db26876b 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java @@ -353,8 +353,14 @@ public class UploadAction updateMetadata( getMetadata( targetPath.getAbsolutePath() ) ); - addActionMessage( "Artifact \'" + groupId + ":" + artifactId + ":" + version + - "\' was successfully deployed to repository \'" + repositoryId + "\'!" ); + String msg = "Artifact \'" + groupId + ":" + artifactId + ":" + version + + "\' was successfully deployed to repository \'" + repositoryId + "\'"; + + //TODO: MRM-810 (this writes to archiva.log, should be audit.log) + getLogger().info( msg + " by " + getPrincipal() ); + + //TODO: MRM-785 (success message does not display on web page) + addActionMessage( msg ); return SUCCESS; } -- 2.39.5