Skip to content

Commit

Permalink
Remove logging.NullHandler definitions as we no longer support 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerdahl committed Apr 4, 2019
1 parent f8b18cb commit 7242893
Show file tree
Hide file tree
Showing 24 changed files with 72 additions and 360 deletions.
18 changes: 3 additions & 15 deletions client_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions client_cli/src/d1_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions client_onedrive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions client_onedrive/src/d1_onedrive/impl/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions dev_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions dev_tools/src/d1_dev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions gmn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions gmn/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_client/src/d1_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_client/src/d1_client/iter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_common/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_common/src/d1_common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_common/src/d1_common/cert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_common/src/d1_common/iter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
18 changes: 3 additions & 15 deletions lib_common/src/d1_common/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,7 @@
"""

# Suppress log messages instead of raising exception if the program using the library
# does not configure the logging system.
import logging

try:
from logging import NullHandler
except ImportError:

class NullHandler(logging.Handler):
"""Suppress log messages instead of raising exception if the program using the
library does not configure the logging system."""

# noinspection PyMissingOrEmptyDocstring
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
logging.getLogger(__name__).addHandler(logging.NullHandler())
Loading

0 comments on commit 7242893

Please sign in to comment.