Skip to content

rs-debug-py-loglevel

A map of ssh public keys to install for the root user

Python Script Log Level Configuration

This parameter controls the logging verbosity of python scripts. Higher log levels provide more detailed information for troubleshooting.

Requirements

  • Must be a valid Python logging level - Changes take effect on next configuration run

Usage

Set logging level:

rs-debug-py-loglevel: INFO
Configure logger: import logging logging.basicConfig( level=logging.{{ .ParamExpand "rs-debug-py-log-level" }}, format="%(asctime)s - %(levelname)s - %(message)s", ) logger = logging.getLogger(__name__) Available log levels from least to most verbose: - CRITICAL: Only critical errors - ERROR: Error conditions - WARN: Warning conditions - INFO: General operational information (default) - DEBUG: Detailed information for troubleshooting - NOTSET: All available logging