Skip to content

Commit

Permalink
use __package__ as the logger name
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Feb 25, 2020
1 parent 2ea4091 commit 8892d6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions msl/qt/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""
Exception handling.
"""
import logging
import traceback as tb

from .utils import logger
from . import (
Qt,
QtGui,
Expand All @@ -12,8 +12,6 @@
prompt,
)

logger = logging.getLogger(__name__)


def excepthook(exctype, value, traceback):
"""Displays unhandled exceptions in a :class:`QtWidgets.QMessageBox`.
Expand Down
9 changes: 5 additions & 4 deletions msl/qt/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
Base classes for starting a process in a new :class:`QThread`.
"""
import sys
import logging
import traceback as tb

from . import QtCore, Signal, prompt

logger = logging.getLogger(__name__)
from . import (
QtCore,
Signal,
prompt
)


class Worker(QtCore.QObject):
Expand Down
4 changes: 4 additions & 0 deletions msl/qt/utils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
"""
General helper functions.
"""
import logging

from . import (
QtGui,
Qt,
QtWidgets,
application,
)

logger = logging.getLogger(__package__)


def to_qfont(*args):
"""Convert the input argument(s) into a :class:`QtGui.QFont`.
Expand Down

0 comments on commit 8892d6b

Please sign in to comment.