PuneetP16
commited on
Commit
·
4fb6480
1
Parent(s):
f0a668b
[fix]: shell commands failing on app reload
Browse files- app/lib/runtime/action-runner.ts +1 -1
- app/utils/logger.ts +1 -1
app/lib/runtime/action-runner.ts
CHANGED
@@ -95,7 +95,7 @@ export class ActionRunner {
|
|
95 |
|
96 |
this.#currentExecutionPromise = this.#currentExecutionPromise
|
97 |
.then(() => {
|
98 |
-
this.#executeAction(actionId, isStreaming);
|
99 |
})
|
100 |
.catch((error) => {
|
101 |
console.error('Action failed:', error);
|
|
|
95 |
|
96 |
this.#currentExecutionPromise = this.#currentExecutionPromise
|
97 |
.then(() => {
|
98 |
+
return this.#executeAction(actionId, isStreaming);
|
99 |
})
|
100 |
.catch((error) => {
|
101 |
console.error('Action failed:', error);
|
app/utils/logger.ts
CHANGED
@@ -11,7 +11,7 @@ interface Logger {
|
|
11 |
setLevel: (level: DebugLevel) => void;
|
12 |
}
|
13 |
|
14 |
-
let currentLevel: DebugLevel =
|
15 |
|
16 |
const isWorker = 'HTMLRewriter' in globalThis;
|
17 |
const supportsColor = !isWorker;
|
|
|
11 |
setLevel: (level: DebugLevel) => void;
|
12 |
}
|
13 |
|
14 |
+
let currentLevel: DebugLevel = import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV ? 'debug' : 'info';
|
15 |
|
16 |
const isWorker = 'HTMLRewriter' in globalThis;
|
17 |
const supportsColor = !isWorker;
|