Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete logger #23

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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