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 3aee0f2 commit 3649531Copy full SHA for 3649531
aws_lambda_powertools/logging/logger.py
@@ -370,6 +370,7 @@ def _configure_sampling(self) -> None:
370
# Because I don't need other if condition here
371
if random.random() <= float(self.sampling_rate):
372
self._logger.setLevel(logging.DEBUG)
373
+ logger.debug("Setting log level to DEBUG due to sampling rate")
374
except ValueError:
375
raise InvalidLoggerSamplingRateError(
376
(
0 commit comments