Skip to content

Commit

Permalink
added log
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Jul 28, 2023
1 parent 7388084 commit bf7f34b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.gbif.registry.ws.resources;

import lombok.extern.slf4j.Slf4j;

import org.gbif.api.annotation.NullToNotFound;
import org.gbif.api.annotation.Trim;
import org.gbif.api.model.common.DOI;
Expand Down Expand Up @@ -124,6 +126,7 @@
* The result is manually moved from the Registry OpenAPI document to the
* Occurrence OpenAPI document.
*/
@Slf4j
public class BaseDownloadResource implements OccurrenceDownloadService {

private final OccurrenceDownloadMapper occurrenceDownloadMapper;
Expand Down Expand Up @@ -375,6 +378,14 @@ public PagingResponse<Download> listByUser(
required = false,
defaultValue = "true") // true by default to keep backwards compatibility
Boolean statistics) {

log.debug(
"List downloads for user {}, status {}, from {} and statistics {}",
user,
status,
from,
statistics);

final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
checkUserIsInSecurityContext(user, authentication);

Expand Down

0 comments on commit bf7f34b

Please sign in to comment.