Skip to content

Commit

Permalink
import and bug fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Jason <[email protected]>
  • Loading branch information
blisc committed Jan 29, 2020
1 parent 6143907 commit 90d2b61
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nemo/utils/formatters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ def format(self, record):
return formatted.replace("\n", "\n ")


class BaseNeMoFormatter(logging.Formatter):
class BaseNeMoFormatter(BaseFormatter):
DEFAULT_FORMAT = "%(color)s[NeMo %(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s"
2 changes: 1 addition & 1 deletion nemo/utils/formatters/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from nemo.constants import NEMO_ENV_VARNAME_ENABLE_COLORING

from nemo.utils import get_envbool
from nemo.utils.env_var_parsing import get_envbool

__all__ = ["check_color_support", "to_unicode"]

Expand Down
14 changes: 7 additions & 7 deletions nemo/utils/nemo_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
# import os
import sys

import inspect
# import inspect
import warnings

from contextlib import contextmanager

import threading
import logging as _logging

from nemo.constants import NEMO_ENV_VARNAME_SAVE_LOGS_TO_DIR
# from nemo.constants import NEMO_ENV_VARNAME_SAVE_LOGS_TO_DIR
from nemo.constants import NEMO_ENV_VARNAME_REDIRECT_LOGS_TO_STDERR

from nemo.utils.formatters import BaseNeMoFormatter
from nemo.utils.formatters.base import BaseNeMoFormatter
from nemo.utils.metaclasses import SingletonMetaClass

from nemo.utils import get_envbool
from nemo.utils import get_env
from nemo.utils import get_envint
from nemo.utils.env_var_parsing import get_envbool
from nemo.utils.env_var_parsing import get_env
from nemo.utils.env_var_parsing import get_envint

__all__ = [
"Logger",
Expand Down

0 comments on commit 90d2b61

Please sign in to comment.