chunklet.common.logging_utils
Functions:
-
log_info–Log an info message if verbose is enabled.
log_info
Log an info message if verbose is enabled.
This is a convenience function that only logs when verbose mode is enabled, avoiding unnecessary log output in production.
Parameters:
-
(verbosebool) –If True, logs the message; if False, does nothing.
-
–*argsPositional arguments passed to logger.info().
-
–**kwargsKeyword arguments passed to logger.info().
Example
log_info(True, "Processing file: {}", filepath) Processing file: /path/to/file log_info(False, "This will not be logged") (no output)