Download ComfyUI_INSTARAW/js/log.js from MarkLilly/mis-custom-nodes: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/ComfyUI_INSTARAW/js/log.js
- Command line
-
hf download hf://MarkLilly/mis-custom-nodes/ComfyUI_INSTARAW/js/log.js
-
curl -L -o log.js https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/ComfyUI_INSTARAW/js/log.js
1.02 kB
| // --- | |
| // Filename: ../ComfyUI_INSTARAW/js/log.js | |
| // --- | |
| import { app } from "../../scripts/app.js"; | |
| export class Log { | |
| static log(s) { if (s) console.log(s) } | |
| static error(e) { console.error(e) } | |
| static detail(s) { | |
| // Updated settings key | |
| if (app.ui.settings.getSettingValue("INSTARAW.Interactive.DetailedLogging")) Log.log(s) | |
| } | |
| static message_in(message, extra) { | |
| // Updated settings key | |
| if (!app.ui.settings.getSettingValue("INSTARAW.Interactive.DetailedLogging")) return | |
| if (message.detail && !message.detail.tick) Log.log(`--> ${JSON.stringify(message.detail)}` + (extra ? ` ${extra}` : "")) | |
| if (message.detail && message.detail.tick) Log.log(`--> tick`) | |
| } | |
| static message_out(response, extra) { | |
| // Updated settings key | |
| if (!app.ui.settings.getSettingValue("INSTARAW.Interactive.DetailedLogging")) return | |
| Log.log(`"<-- ${JSON.stringify(response)}` + (extra ? ` ${extra}` : "")) | |
| } | |
| } |