Skip to content

Commit 16947ce

Browse files
Remove debug logs from autosync service
- Remove excessive debug logging from scheduleAutoSync and stopAutoSync - Keep essential logging for troubleshooting - Clean up console output for production use
1 parent eca0cb5 commit 16947ce

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/server/services/autoSyncService.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,9 @@ export class AutoSyncService {
231231
* Schedule auto-sync cron job
232232
*/
233233
scheduleAutoSync() {
234-
console.log('scheduleAutoSync called - stopping any existing job first');
235234
this.stopAutoSync(); // Stop any existing job
236235

237236
const settings = this.loadSettings();
238-
console.log('Current settings loaded:', { autoSyncEnabled: settings.autoSyncEnabled });
239-
240237
if (!settings.autoSyncEnabled) {
241238
console.log('Auto-sync is disabled, not scheduling cron job');
242239
this.isRunning = false; // Ensure we're completely stopped
@@ -315,9 +312,7 @@ export class AutoSyncService {
315312
* Stop auto-sync cron job
316313
*/
317314
stopAutoSync() {
318-
console.log('stopAutoSync called - cronJob exists:', !!this.cronJob);
319315
if (this.cronJob) {
320-
console.log('Stopping and destroying cron job...');
321316
this.cronJob.stop();
322317
this.cronJob.destroy();
323318
this.cronJob = null;

0 commit comments

Comments
 (0)