[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
This commit is contained in:
Wendy Smoak 2008-05-17 17:39:25 +00:00
parent 8adede7e94
commit ea6809bb91
1 changed files with 8 additions and 2 deletions

View 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;
}