Improve k8s logging accuracy
parent
6c533e123b
commit
e833b5e231
|
@ -3312,7 +3312,6 @@ class Kubernetes {
|
||||||
try {
|
try {
|
||||||
const status = yield this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace);
|
const status = yield this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace);
|
||||||
cloud_runner_logger_1.default.log(JSON.stringify(status, undefined, 4));
|
cloud_runner_logger_1.default.log(JSON.stringify(status, undefined, 4));
|
||||||
cloud_runner_logger_1.default.log(JSON.stringify(yield this.kubeClient.readNamespacedPod(this.podName, this.namespace), undefined, 4));
|
|
||||||
existsAlready = true;
|
existsAlready = true;
|
||||||
}
|
}
|
||||||
catch (_c) {
|
catch (_c) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -137,9 +137,6 @@ class Kubernetes implements ProviderInterface {
|
||||||
try {
|
try {
|
||||||
const status = await this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace);
|
const status = await this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace);
|
||||||
CloudRunnerLogger.log(JSON.stringify(status, undefined, 4));
|
CloudRunnerLogger.log(JSON.stringify(status, undefined, 4));
|
||||||
CloudRunnerLogger.log(
|
|
||||||
JSON.stringify(await this.kubeClient.readNamespacedPod(this.podName, this.namespace), undefined, 4),
|
|
||||||
);
|
|
||||||
existsAlready = true;
|
existsAlready = true;
|
||||||
} catch {
|
} catch {
|
||||||
// empty
|
// empty
|
||||||
|
|
Loading…
Reference in New Issue