1
0

Add debug functionality to monitor script

This commit is contained in:
2025-06-01 06:14:41 +02:00
parent 875328f16c
commit 288a5eab06

View File

@@ -13,6 +13,8 @@ const simpleGit = require('simple-git');
const chokidar = require('chokidar');
const ignore = require('ignore');
const debug = require('debug')('monitor');
const store = new Store({
defaults: {
folders: [],
@@ -82,9 +84,9 @@ if (Array.isArray(folders)) {
const repoWatchers = new Map();
// Debug Helper
function debug(msg) {
console.log(`[DEBUG ${new Date().toISOString()}] ${msg}`);
}
//function debug(msg) {
// console.log(`[DEBUG ${new Date().toISOString()}] ${msg}`);
//}
/**
* Erstellt das BrowserWindow und lädt index.html.