Skip to content

Commit

Permalink
feat(#8472): [Dependency Governance] replace `org.apache.commons.logg…
Browse files Browse the repository at this point in the history
…ing.Log` with `org.slf4j.Logger`. (#8472) (#8578)
  • Loading branch information
CherishCai authored Jun 16, 2022
1 parent ed81d3c commit 747e2f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

import com.alibaba.nacos.common.packagescan.util.NestedIoException;
import com.alibaba.nacos.common.packagescan.util.ResourceUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.FileNotFoundException;
Expand Down Expand Up @@ -58,7 +58,7 @@ public boolean exists() {
try {
return getFile().exists();
} catch (IOException ex) {
Log logger = LogFactory.getLog(getClass());
Logger logger = LoggerFactory.getLogger(getClass());
if (logger.isDebugEnabled()) {
logger.debug("Could not retrieve File for existence check of " + getDescription(), ex);
}
Expand All @@ -69,7 +69,7 @@ public boolean exists() {
getInputStream().close();
return true;
} catch (Throwable ex) {
Log logger = LogFactory.getLog(getClass());
Logger logger = LoggerFactory.getLogger(getClass());
if (logger.isDebugEnabled()) {
logger.debug("Could not retrieve InputStream for existence check of " + getDescription(), ex);
}
Expand Down Expand Up @@ -169,7 +169,7 @@ public long contentLength() throws IOException {
try {
is.close();
} catch (IOException ex) {
Log logger = LogFactory.getLog(getClass());
Logger logger = LoggerFactory.getLogger(getClass());
if (logger.isDebugEnabled()) {
logger.debug("Could not close content-length InputStream for " + getDescription(), ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import com.alibaba.nacos.common.utils.ClassUtils;
import com.alibaba.nacos.common.utils.ReflectUtils;
import com.alibaba.nacos.common.utils.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.FileNotFoundException;
Expand Down Expand Up @@ -174,7 +174,7 @@
*/
public class PathMatchingResourcePatternResolver implements ResourcePatternResolver {

private static final Log LOGGER = LogFactory.getLog(PathMatchingResourcePatternResolver.class);
private static final Logger LOGGER = LoggerFactory.getLogger(PathMatchingResourcePatternResolver.class);

private static Method equinoxResolveMethod;

Expand Down

0 comments on commit 747e2f9

Please sign in to comment.