opencode-acp 1.14.19-pr.309.21 → 1.14.19-pr.311.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/logger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8949,7 +8949,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
|
|
|
8949
8949
|
import { join as join3 } from "path";
|
|
8950
8950
|
import { existsSync as existsSync3 } from "fs";
|
|
8951
8951
|
import { homedir as homedir3 } from "os";
|
|
8952
|
-
var LOG_VERSION = true ? "1.14.19-pr.
|
|
8952
|
+
var LOG_VERSION = true ? "1.14.19-pr.311.22" : "dev";
|
|
8953
8953
|
var Logger = class {
|
|
8954
8954
|
logDir;
|
|
8955
8955
|
enabled;
|
|
@@ -9004,7 +9004,7 @@ var Logger = class {
|
|
|
9004
9004
|
}
|
|
9005
9005
|
}
|
|
9006
9006
|
async write(level, component, message, data) {
|
|
9007
|
-
if (!this.enabled) return;
|
|
9007
|
+
if (!this.enabled && level !== "ERROR" && level !== "WARN") return;
|
|
9008
9008
|
try {
|
|
9009
9009
|
await this.ensureLogDir();
|
|
9010
9010
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -9031,12 +9031,10 @@ var Logger = class {
|
|
|
9031
9031
|
return this.write("DEBUG", component, message, data);
|
|
9032
9032
|
}
|
|
9033
9033
|
warn(message, data) {
|
|
9034
|
-
if (!this.enabled) return;
|
|
9035
9034
|
const component = this.getCallerFile(2);
|
|
9036
9035
|
return this.write("WARN", component, message, data);
|
|
9037
9036
|
}
|
|
9038
9037
|
error(message, data) {
|
|
9039
|
-
if (!this.enabled) return;
|
|
9040
9038
|
const component = this.getCallerFile(2);
|
|
9041
9039
|
return this.write("ERROR", component, message, data);
|
|
9042
9040
|
}
|