@@ -1493,7 +1493,7 @@ def debug(self, msg, *args, **kwargs):
1493
1493
To pass exception information, use the keyword argument exc_info with
1494
1494
a true value, e.g.
1495
1495
1496
- logger.debug("Houston, we have a %s", "thorny problem", exc_info=1 )
1496
+ logger.debug("Houston, we have a %s", "thorny problem", exc_info=True )
1497
1497
"""
1498
1498
if self .isEnabledFor (DEBUG ):
1499
1499
self ._log (DEBUG , msg , args , ** kwargs )
@@ -1505,7 +1505,7 @@ def info(self, msg, *args, **kwargs):
1505
1505
To pass exception information, use the keyword argument exc_info with
1506
1506
a true value, e.g.
1507
1507
1508
- logger.info("Houston, we have a %s", "notable problem", exc_info=1 )
1508
+ logger.info("Houston, we have a %s", "notable problem", exc_info=True )
1509
1509
"""
1510
1510
if self .isEnabledFor (INFO ):
1511
1511
self ._log (INFO , msg , args , ** kwargs )
@@ -1517,7 +1517,7 @@ def warning(self, msg, *args, **kwargs):
1517
1517
To pass exception information, use the keyword argument exc_info with
1518
1518
a true value, e.g.
1519
1519
1520
- logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1 )
1520
+ logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True )
1521
1521
"""
1522
1522
if self .isEnabledFor (WARNING ):
1523
1523
self ._log (WARNING , msg , args , ** kwargs )
@@ -1529,7 +1529,7 @@ def error(self, msg, *args, **kwargs):
1529
1529
To pass exception information, use the keyword argument exc_info with
1530
1530
a true value, e.g.
1531
1531
1532
- logger.error("Houston, we have a %s", "major problem", exc_info=1 )
1532
+ logger.error("Houston, we have a %s", "major problem", exc_info=True )
1533
1533
"""
1534
1534
if self .isEnabledFor (ERROR ):
1535
1535
self ._log (ERROR , msg , args , ** kwargs )
@@ -1547,7 +1547,7 @@ def critical(self, msg, *args, **kwargs):
1547
1547
To pass exception information, use the keyword argument exc_info with
1548
1548
a true value, e.g.
1549
1549
1550
- logger.critical("Houston, we have a %s", "major disaster", exc_info=1 )
1550
+ logger.critical("Houston, we have a %s", "major disaster", exc_info=True )
1551
1551
"""
1552
1552
if self .isEnabledFor (CRITICAL ):
1553
1553
self ._log (CRITICAL , msg , args , ** kwargs )
@@ -1565,7 +1565,7 @@ def log(self, level, msg, *args, **kwargs):
1565
1565
To pass exception information, use the keyword argument exc_info with
1566
1566
a true value, e.g.
1567
1567
1568
- logger.log(level, "We have a %s", "mysterious problem", exc_info=1 )
1568
+ logger.log(level, "We have a %s", "mysterious problem", exc_info=True )
1569
1569
"""
1570
1570
if not isinstance (level , int ):
1571
1571
if raiseExceptions :
0 commit comments