log end of script

if nodejs gets stuck at 100% cpu again this will let me know it's when the process is supposed to be exiting after all my code
This commit is contained in:
Lamp 2025-02-11 01:06:17 -08:00
parent e4b0d5cbac
commit f9d375f249

@ -1,3 +1,5 @@
console.log("start", Date());
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
import { appendFileSync } from "fs";
import { getNewPixivPosts } from "./pixiv.js";
@ -12,3 +14,5 @@ for (let post of newPosts) {
appendFileSync(`known_ids/初音ミク.txt`, "\n" + post.id);
}
}
console.log("end", Date());