pinokiod 3.4.10 → 3.4.11
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/package.json +1 -1
- package/server/index.js +6 -1
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -2022,12 +2022,17 @@ class Server {
|
|
|
2022
2022
|
clearInterval(this.logInterval)
|
|
2023
2023
|
}
|
|
2024
2024
|
if (homedir) {
|
|
2025
|
+
console.log({ homedir })
|
|
2025
2026
|
let exists = await this.exists(homedir)
|
|
2027
|
+
console.log( { exists })
|
|
2026
2028
|
if (exists) {
|
|
2027
2029
|
let logsdir = path.resolve(homedir, "logs")
|
|
2028
|
-
|
|
2030
|
+
console.log({ logsdir })
|
|
2031
|
+
await fs.promises.mkdir(logsdir, { recursive: true }).catch((e) => { console.log(e) })
|
|
2032
|
+
console.log("this.log", this.log)
|
|
2029
2033
|
if (!this.log) {
|
|
2030
2034
|
this.log = fs.createWriteStream(path.resolve(homedir, "logs/stdout.txt"))
|
|
2035
|
+
console.log("created this.log", this.log)
|
|
2031
2036
|
process.stdout.write = process.stderr.write = this.log.write.bind(this.log)
|
|
2032
2037
|
process.on('uncaughtException', (err) => {
|
|
2033
2038
|
console.error((err && err.stack) ? err.stack : err);
|