Skip to content

Commit

Permalink
Configure handler for root logger
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jul 25, 2024
1 parent 3e15848 commit 9415aea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/pynxtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@
# limitations under the License.
#

import logging
import os
import re
from datetime import datetime

from pynxtools._build_wrapper import get_vcs_version
from pynxtools.definitions.dev_tools.globals.nxdl import get_nxdl_version

logging.basicConfig(level=logging.WARNING)
root_logger = logging.getLogger()
for handler in root_logger.handlers:
root_logger.removeHandler(handler)
root_logger.addHandler(logging.StreamHandler())

MAIN_BRANCH_NAME = "fairmat"


Expand Down
1 change: 0 additions & 1 deletion src/pynxtools/dataconverter/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())


if sys.version_info >= (3, 10):
Expand Down
2 changes: 1 addition & 1 deletion src/pynxtools/dataconverter/readers/base/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"""The abstract class off of which to implement readers."""

from abc import ABC, abstractmethod
from typing import Tuple, Any
from typing import Any, Tuple


class BaseReader(ABC):
Expand Down
1 change: 0 additions & 1 deletion src/pynxtools/dataconverter/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())


class Template(dict):
Expand Down

0 comments on commit 9415aea

Please sign in to comment.