Skip to content

Commit

Permalink
set logger level for package (#1718)
Browse files Browse the repository at this point in the history
* move logging config to trainer class init

* alternate logging config
  • Loading branch information
jeremyjordan authored May 12, 2020
1 parent 4b30ef6 commit 1df0d2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytorch_lightning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
import logging as python_logging

_logger = python_logging.getLogger("lightning")
python_logging.basicConfig(level=python_logging.INFO)
_logger.addHandler(python_logging.StreamHandler())
_logger.setLevel(python_logging.INFO)

try:
# This variable is injected in the __builtins__ by the build
Expand Down
1 change: 1 addition & 0 deletions pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import inspect
import os
import logging as python_logging
from argparse import ArgumentParser
from typing import Union, Optional, List, Dict, Tuple, Iterable, Any

Expand Down

0 comments on commit 1df0d2d

Please sign in to comment.