From: Wendy Smoak Date: Sat, 17 May 2008 17:39:25 +0000 (+0000) Subject: [MRM-810] Log the successful upload. Needs to be fixed to write to audit.log in... X-Git-Tag: archiva-r676265~129 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ea6809bb91c1248029fac7fec80307809b528151;p=archiva.git [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 --- 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; }