🔊 Add logs
This commit is contained in:
parent
dc633ead9d
commit
1e37a5cada
@ -14,6 +14,8 @@ import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.ws.rs.*;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
@ -24,6 +26,8 @@ import java.util.Optional;
|
||||
@Authenticated
|
||||
public class PodResource
|
||||
{
|
||||
private static final Logger LOG = LoggerFactory.getLogger(PodResource.class);
|
||||
|
||||
@Inject
|
||||
ClientProvider clientProvider;
|
||||
|
||||
@ -36,8 +40,10 @@ public class PodResource
|
||||
{
|
||||
if(namespace != null && !namespace.isBlank())
|
||||
{
|
||||
LOG.info("Retrieving pods from namespace {}", namespace);
|
||||
return podService.findByNamespace(namespace);
|
||||
}
|
||||
LOG.info("Retrieving all pods.");
|
||||
return podService.findAll();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user