mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
improve logging
This commit is contained in:
@@ -35,6 +35,9 @@ package sonia.scm.client;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import sonia.scm.ScmState;
|
||||
import sonia.scm.group.Group;
|
||||
import sonia.scm.repository.Repository;
|
||||
@@ -53,6 +56,12 @@ import java.io.IOException;
|
||||
public class JerseyClientSession implements ScmClientSession
|
||||
{
|
||||
|
||||
/** the logger for JerseyClientSession */
|
||||
private static final Logger logger =
|
||||
LoggerFactory.getLogger(JerseyClientSession.class);
|
||||
|
||||
//~--- constructors ---------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
@@ -80,6 +89,11 @@ public class JerseyClientSession implements ScmClientSession
|
||||
@Override
|
||||
public void close() throws IOException
|
||||
{
|
||||
if (logger.isInfoEnabled())
|
||||
{
|
||||
logger.info("close client session");
|
||||
}
|
||||
|
||||
client.destroy();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user