Skip to content

Commit 3649531

Browse files
Addressing Andrea's feedback
1 parent 3aee0f2 commit 3649531

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aws_lambda_powertools/logging/logger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ def _configure_sampling(self) -> None:
370370
# Because I don't need other if condition here
371371
if random.random() <= float(self.sampling_rate):
372372
self._logger.setLevel(logging.DEBUG)
373+
logger.debug("Setting log level to DEBUG due to sampling rate")
373374
except ValueError:
374375
raise InvalidLoggerSamplingRateError(
375376
(

0 commit comments

Comments
 (0)