for if permissions are not automatically granted.
"""
+ logger = logging.getLogger(__name__)
try:
if not os.geteuid() == 0:
if stdin.isatty():
privileges, but permission errors will be shown in the output without it.
"""
+ logger = logging.getLogger(__name__)
try:
if not os.geteuid() == 0:
logger.warning("Cannot run logrotate as root - you will see permission errors in the output below")