diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/HttpUtils.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/HttpUtils.java index 681032ecf23b..e814fefc57f1 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/HttpUtils.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/HttpUtils.java @@ -682,7 +682,7 @@ public static byte[] toBytes(final File file) throws IOException { input.close(); } } catch (IOException ioe) { - System.err.println(ioe); + LOG.error("toBytes error", ioe); } } } diff --git a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/k8s/script/e2e-postgres.sh b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/k8s/script/e2e-postgres.sh index 102a905a7b07..d3f396d4902a 100644 --- a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/k8s/script/e2e-postgres.sh +++ b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/k8s/script/e2e-postgres.sh @@ -36,6 +36,11 @@ kubectl get pod -o wide chmod +x "${curPath}"/healthcheck.sh sh "${curPath}"/healthcheck.sh postgres http://localhost:31095/actuator/health http://localhost:31195/actuator/health +kubectl logs "$(kubectl get pod -o wide | grep shenyu-postgres | awk '{print $1}')" + +kubectl logs "$(kubectl get pod -o wide | grep shenyu-admin | awk '{print $1}')" + +kubectl logs "$(kubectl get pod -o wide | grep shenyu-bootstrap | awk '{print $1}')" ## run e2e-test curl -S "http://localhost:31195/actuator/pluginData" diff --git a/shenyu-registry/shenyu-registry-etcd/src/main/java/org/apache/shenyu/registry/etcd/EtcdClient.java b/shenyu-registry/shenyu-registry-etcd/src/main/java/org/apache/shenyu/registry/etcd/EtcdClient.java index 283626a07b95..9c4638e68015 100644 --- a/shenyu-registry/shenyu-registry-etcd/src/main/java/org/apache/shenyu/registry/etcd/EtcdClient.java +++ b/shenyu-registry/shenyu-registry-etcd/src/main/java/org/apache/shenyu/registry/etcd/EtcdClient.java @@ -125,7 +125,7 @@ public GetResponse getRange(final String key, final GetOption getOption) { try { return this.client.getKVClient().get(bytesOf(key), getOption).get(); } catch (ExecutionException | InterruptedException e) { - LOGGER.error("etcd getRange key {} error {}", key, e); + LOGGER.error("etcd getRange key {} error", key, e); throw new ShenyuException(e); } }