Skip to content

Commit

Permalink
Show DeprecationWarnings by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Koval committed Sep 13, 2015
1 parent 1291a7c commit f24a137
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/prpy/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

import collections, logging, sys
import collections, logging, sys, warnings

class ColoredFormatter(logging.Formatter):
def __init__(self, default):
Expand Down Expand Up @@ -80,6 +80,9 @@ def initialize_logging():
spammy_logger = logging.getLogger(spammy_logger_name)
spammy_logger.setLevel(logging.WARNING)

# Enable deprecation warnings, which are off by default in Python 2.7.
warnings.simplefilter('default')

return base_logger

def remove_ros_logger():
Expand Down

0 comments on commit f24a137

Please sign in to comment.