Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
tuned.12921
log_initialize_explicitly_with_int.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File log_initialize_explicitly_with_int.patch of Package tuned.12921
From: Jaroslav Škarvada <jskarvad@redhat.com> Subject: log: initialize maxBytes, backupCount in RotatingFileHandler explicitly with int References: bsc#1126609 Patch-Mainline: v2.11.0-rc.1 Git-commit: 98c3707851c9989e7faae6e50e9b3a93859ad001 Git-repo: https://github.com/openSUSE/tuned.git Fixes: #148 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com> Signed-off-by: Thomas Renninger <trenn@suse.com> diff --git a/tuned/logs.py b/tuned/logs.py index bd1b6ec..f30ab36 100644 --- a/tuned/logs.py +++ b/tuned/logs.py @@ -136,7 +136,7 @@ class TunedLogger(logging.getLoggerClass()): os.makedirs(log_directory) cls._file_handler = logging.handlers.RotatingFileHandler( - filename, maxBytes = maxBytes, backupCount = backupCount) + filename, maxBytes = int(maxBytes), backupCount = int(backupCount)) cls._file_handler.setFormatter(cls._formatter) logging.addLevelName(consts.LOG_LEVEL_CONSOLE, consts.LOG_LEVEL_CONSOLE_NAME)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor