Skip to content

Commit

Permalink
quck fix, ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
skadefro committed Jan 2, 2025
1 parent 79ac098 commit afdac40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ export class Logger {

if(Logger.otel == null) {
try {
// @ts-ignore
if (!skipotel && Logger._otel_require == null) Logger._otel_require = await import("./ee/otel.js");
} catch (error) {
console.error(error.message);
Expand Down Expand Up @@ -477,6 +478,7 @@ export class Logger {
}
if (this.agentdriver == null && (!NoderedUtil.IsNullEmpty(process.env["KUBERNETES_SERVICE_HOST"]) || !NoderedUtil.IsNullEmpty(process.env["USE_KUBERNETES"]))) {
try {
// @ts-ignore
let _driver: any = await import("./ee/kubedriver.js");
this.agentdriver = new _driver.kubedriver();
} catch (error) {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ var server: http.Server = null;
Logger.instanse.debug("Configure Webserver", span, { cls: "index", func: "init" });
server = await WebServer.configure(Config.baseurl(), span);
try {
// @ts-ignore
let GrafanaProxy: any = await import("./ee/grafana-proxy.js");
Logger.instanse.debug("Configure grafana", span, { cls: "index", func: "init" });
const grafana = await GrafanaProxy.GrafanaProxy.configure(WebServer.app, span);
Expand Down
1 change: 1 addition & 0 deletions src/test/KubeUtil.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Config } from "../Config.js";
import { DatabaseConnection } from "../DatabaseConnection.js";
import assert from "assert";
import { Logger } from "../Logger.js";
// @ts-ignore
import { KubeUtil } from "../ee/KubeUtil.js";

@suite class kubeutil_test {
Expand Down

0 comments on commit afdac40

Please sign in to comment.