We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1291a7c commit f24a137Copy full SHA for f24a137
src/prpy/logger.py
@@ -28,7 +28,7 @@
28
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
# POSSIBILITY OF SUCH DAMAGE.
30
31
-import collections, logging, sys
+import collections, logging, sys, warnings
32
33
class ColoredFormatter(logging.Formatter):
34
def __init__(self, default):
@@ -80,6 +80,9 @@ def initialize_logging():
80
spammy_logger = logging.getLogger(spammy_logger_name)
81
spammy_logger.setLevel(logging.WARNING)
82
83
+ # Enable deprecation warnings, which are off by default in Python 2.7.
84
+ warnings.simplefilter('default')
85
+
86
return base_logger
87
88
def remove_ros_logger():
0 commit comments