Add guards to prevent activation errors slipping through (#5845)

* Add guards to prevent activation errors slipping through

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Make sure all logging has a message, output less errors when prometheus fails

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Improve logging from getPortFromStream

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-07-19 09:05:41 +03:00
1 parent 0d2aea0101
commit 81c18a6cad
8 files changed
+43 -17

No files matched your search

+2 -3
View File
@@ -132,8 +132,7 @@ export class Kubectl {
return this.path;
} catch (err) {
logger.error("Failed to ensure kubectl, fallback to the bundled version");
logger.error(err);
logger.error("Failed to ensure kubectl, fallback to the bundled version", err);
return this.getBundledPath();
}
@@ -146,7 +145,7 @@ export class Kubectl {
return this.dirname;
} catch (err) {
logger.error(err);
logger.error("Failed to get biniary directory", err);
return "";
}