Skip to content

Commit

Permalink
don't hijack logging anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kerberizer committed Dec 2, 2023
1 parent 3c633b5 commit 6780dea
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions orangecontrib/oranchada/widgets_pro/process_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
from itertools import cycle


for handler in logging.root.handlers[:]:
logging.root.removeHandler(handler)
logging.basicConfig(handlers=[logging.FileHandler("charisma.log", mode='w')], level=logging.NOTSET)
logging.root.setLevel(logging.NOTSET)
log = logging.getLogger("charisma")
log.info("log hijack for debugging")

log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)

class ProcessSpectraWidget: # (OWWidget):
# Define the widget's name, category, and outputs
Expand Down

0 comments on commit 6780dea

Please sign in to comment.