Skip to content

Commit

Permalink
Remove obsolete logger (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Mar 20, 2024
1 parent 0dc225b commit 80e6b64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ History

X.Y.Z (YYYY-MM-DD)
------------------
* Remove obsolete logger (:pr:`23`)
* Support lists of fits files (:pr:`21`)
* Test stacking in the globbing case (:pr:`20`)

Expand Down
23 changes: 0 additions & 23 deletions xarrayfits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,4 @@
__email__ = "simon.perkins@gmail.com"
__version__ = "0.2.1"

import logging


def __create_logger():
# Console formatter, mention name
cfmt = logging.Formatter("%(name)s - %(levelname)s - %(message)s")

# Console handler
ch = logging.StreamHandler()
ch.setLevel(logging.INFO)
ch.setFormatter(cfmt)

logger = logging.getLogger("xarray-fits")
logger.handlers = []
logger.setLevel(logging.DEBUG)
logger.addHandler(ch)
logger.propagate = False

return logger


log = __create_logger()

from xarrayfits.fits import xds_from_fits # noqa

0 comments on commit 80e6b64

Please sign in to comment.