This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git


The following commit(s) were added to refs/heads/master by this push:
     new 6bcc8f3faf log when a user downloads a bundle
6bcc8f3faf is described below

commit 6bcc8f3faf3927118637a165d28fe74c709c33d4
Author: Alex Heneveld <[email protected]>
AuthorDate: Mon Nov 28 15:51:11 2022 +0000

    log when a user downloads a bundle
---
 .../main/java/org/apache/brooklyn/rest/resources/BundleResource.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/BundleResource.java
 
b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/BundleResource.java
index 1b8cd13de8..b6b3f4e79b 100644
--- 
a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/BundleResource.java
+++ 
b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/BundleResource.java
@@ -127,6 +127,8 @@ public class BundleResource extends 
AbstractBrooklynRestResource implements Bund
             throw WebResourceUtils.notFound("Bundle with id '%s:%s' doesn't 
have a ZIP archive found", symbolicName, version);
         }
 
+        log.debug("Download of bundle "+managedBundle+" by user 
"+Entitlements.getEntitlementContext().user());
+
         try {
             return Response
                     .ok(FileUtils.readFileToByteArray(bundleFile), 
"application/zip")

Reply via email to