Skip to content

Commit

Permalink
Remove additional log file
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeoLacruz committed Dec 10, 2024
1 parent d6f2b44 commit 4bfa53d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inventree_supplier_sync/supplier_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
fh = logging.FileHandler('sync.log')
fh.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
fh.setFormatter(formatter)
logger.addHandler(fh)
# fh = logging.FileHandler('sync.log')
# fh.setLevel(logging.INFO)
# formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
# fh.setFormatter(formatter)
# logger.addHandler(fh)


# ---------------------------- SupplierSyncPlugin -----------------------------
Expand All @@ -40,7 +40,7 @@ class SupplierSyncPlugin(AppMixin, ScheduleMixin, SettingsMixin, PanelMixin, Inv
'member': {
'func': 'update_part',
'schedule': 'I',
'minutes': 1,
'minutes': 5,
}
}

Expand Down

0 comments on commit 4bfa53d

Please sign in to comment.