mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use common/logger everywhere, remove main/logger export
- in Renderer make it 'console' which a stub for silly level - in Main make it a winston logger with file output as well - in testing make it a jest mock stub - in all other cases make it a winston logger without file output - Turn on no-console - Fix logger during integration testing Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
a5e89b79d6
commit
990000678a
105 files changed
+267
-338
No files matched your search
@@ -24,6 +24,7 @@ import semver from "semver";
|
||||
import * as path from "path";
|
||||
|
||||
const { ResourceStack, forCluster, StorageClass, Namespace } = Renderer.K8sApi;
|
||||
const { logger } = Common;
|
||||
|
||||
type ResourceStack = Renderer.K8sApi.ResourceStack;
|
||||
|
||||
@@ -110,7 +111,7 @@ export class MetricsFeature {
|
||||
if (e?.error?.code === 404) {
|
||||
status.installed = false;
|
||||
} else {
|
||||
console.warn("[LENS-METRICS] failed to resolve install state", e);
|
||||
logger.warn("[LENS-METRICS] failed to resolve install state", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user