]> source.dussan.org Git - archiva.git/commitdiff
[MRM-810] Log the successful upload. Needs to be fixed to write to audit.log in...
authorWendy Smoak <wsmoak@apache.org>
Sat, 17 May 2008 17:39:25 +0000 (17:39 +0000)
committerWendy Smoak <wsmoak@apache.org>
Sat, 17 May 2008 17:39:25 +0000 (17:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@657406 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java

index 0efc1f37a593d9868bb6a83399067a68baffd3ba..9db26876bd342871a8ca0cd13c25c7ba25552782 100644 (file)
@@ -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;
         }