当spring cloud config server无法连接到远程git repo时,如何删除NoRemoteRepositoryException日志?

时间:2017-06-06 03:02:41

标签: spring spring-cloud spring-cloud-config

有spring cloud配置客户端和服务器,当服务器无法连接到远程git repo时,我不希望服务器显示错误日志。有什么方法可以做到吗?

服务器端日志:

org.eclipse.jgit.errors.NoRemoteRepositoryException: ssh://git@cedt-icg-bitbucketcli.nam.nsroot.net:7999/primewire/configuserapp12423.git: Repository not foundThe requested repository does not exist, or you do not have permission to access it.
at org.eclipse.jgit.transport.TransportGitSsh.cleanNotFound(TransportGitSsh.java:208) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar:3.5.3.201412180710-r]
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:288) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar:3.5.3.201412180710-r]

0 个答案:

没有答案