fix log error

This commit is contained in:
bwcx_jzy 2022-05-30 11:53:14 +08:00
parent cda37ec8bb
commit a2208edd79
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5
4 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,6 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import cn.hutool.core.lang.PatternPool;
import cn.hutool.core.lang.RegexPool;
import cn.hutool.core.util.NumberUtil;

View File

@ -431,7 +431,7 @@ public abstract class BaseDbService<T extends BaseDbModel> extends BaseDbCommonS
} catch (java.lang.IllegalStateException illegalStateException) {
return 0L;
} catch (Exception e) {
DefaultSystemLog.getLog().error("查询数据错误 {}", e.getMessage());
DefaultSystemLog.getLog().error("查询数据错误", e);
return 0L;
}
if (pageResult.isEmpty()) {

View File

@ -135,7 +135,7 @@ public class GitUtil {
private static void setCredentials(TransportCommand<?, ?> transportCommand, Map<String, Object> parameter) {
Integer protocol = (Integer) parameter.get("protocol");
String username = (String) parameter.get("username");
String password = (String) parameter.get("password");
String password = StrUtil.emptyToDefault((String) parameter.get("password"), StrUtil.EMPTY);
if (protocol == 0) {
// http
UsernamePasswordCredentialsProvider credentialsProvider = new UsernamePasswordCredentialsProvider(username, password);

View File

@ -38,6 +38,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.7</version>
<relativePath />
</parent>
<groupId>io.jpom</groupId>
<artifactId>jpom-parent</artifactId>