@@ -1521,7 +1521,7 @@ def debug(self, msg, *args, **kwargs):
1521
1521
To pass exception information, use the keyword argument exc_info with
1522
1522
a true value, e.g.
1523
1523
1524
- logger.debug("Houston, we have a %s", "thorny problem", exc_info=1 )
1524
+ logger.debug("Houston, we have a %s", "thorny problem", exc_info=True )
1525
1525
"""
1526
1526
if self .isEnabledFor (DEBUG ):
1527
1527
self ._log (DEBUG , msg , args , ** kwargs )
@@ -1533,7 +1533,7 @@ def info(self, msg, *args, **kwargs):
1533
1533
To pass exception information, use the keyword argument exc_info with
1534
1534
a true value, e.g.
1535
1535
1536
- logger.info("Houston, we have a %s", "notable problem", exc_info=1 )
1536
+ logger.info("Houston, we have a %s", "notable problem", exc_info=True )
1537
1537
"""
1538
1538
if self .isEnabledFor (INFO ):
1539
1539
self ._log (INFO , msg , args , ** kwargs )
@@ -1545,7 +1545,7 @@ def warning(self, msg, *args, **kwargs):
1545
1545
To pass exception information, use the keyword argument exc_info with
1546
1546
a true value, e.g.
1547
1547
1548
- logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1 )
1548
+ logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True )
1549
1549
"""
1550
1550
if self .isEnabledFor (WARNING ):
1551
1551
self ._log (WARNING , msg , args , ** kwargs )
@@ -1562,7 +1562,7 @@ def error(self, msg, *args, **kwargs):
1562
1562
To pass exception information, use the keyword argument exc_info with
1563
1563
a true value, e.g.
1564
1564
1565
- logger.error("Houston, we have a %s", "major problem", exc_info=1 )
1565
+ logger.error("Houston, we have a %s", "major problem", exc_info=True )
1566
1566
"""
1567
1567
if self .isEnabledFor (ERROR ):
1568
1568
self ._log (ERROR , msg , args , ** kwargs )
@@ -1580,7 +1580,7 @@ def critical(self, msg, *args, **kwargs):
1580
1580
To pass exception information, use the keyword argument exc_info with
1581
1581
a true value, e.g.
1582
1582
1583
- logger.critical("Houston, we have a %s", "major disaster", exc_info=1 )
1583
+ logger.critical("Houston, we have a %s", "major disaster", exc_info=True )
1584
1584
"""
1585
1585
if self .isEnabledFor (CRITICAL ):
1586
1586
self ._log (CRITICAL , msg , args , ** kwargs )
@@ -1598,7 +1598,7 @@ def log(self, level, msg, *args, **kwargs):
1598
1598
To pass exception information, use the keyword argument exc_info with
1599
1599
a true value, e.g.
1600
1600
1601
- logger.log(level, "We have a %s", "mysterious problem", exc_info=1 )
1601
+ logger.log(level, "We have a %s", "mysterious problem", exc_info=True )
1602
1602
"""
1603
1603
if not isinstance (level , int ):
1604
1604
if raiseExceptions :
0 commit comments