Author: scottbw
Date: Thu Mar 29 15:20:53 2012
New Revision: 1306906

URL: http://svn.apache.org/viewvc?rev=1306906&view=rev
Log:
Moved info message so it only appears when the operation is successful.

Modified:
    
incubator/wookie/trunk/src/org/apache/wookie/controller/ApiKeyController.java

Modified: 
incubator/wookie/trunk/src/org/apache/wookie/controller/ApiKeyController.java
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/controller/ApiKeyController.java?rev=1306906&r1=1306905&r2=1306906&view=diff
==============================================================================
--- 
incubator/wookie/trunk/src/org/apache/wookie/controller/ApiKeyController.java 
(original)
+++ 
incubator/wookie/trunk/src/org/apache/wookie/controller/ApiKeyController.java 
Thu Mar 29 15:20:53 2012
@@ -75,11 +75,11 @@ public class ApiKeyController extends Co
     
     try {
       ApiKeys.getInstance().addKey(value, email);
+      _logger.info("New API key registered for "+email);
     } catch (Exception e) {
       throw new ResourceDuplicationException();  
     }
     
-    _logger.info("New API key registered for "+email);
     return true;
   }
 


Reply via email to