Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
resource-agents.11694
0017-Python-add-logging.basicConfig-to-support-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0017-Python-add-logging.basicConfig-to-support-background.patch of Package resource-agents.11694
From 6ec7e87693a51cbb16a1822e6d15f1dbfc11f8e6 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen <oalbrigt@redhat.com> Date: Mon, 23 Jul 2018 15:55:48 +0200 Subject: [PATCH] Python: add logging.basicConfig() to support background logging --- heartbeat/ocf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/heartbeat/ocf.py b/heartbeat/ocf.py index 12be7a2a..36e7cccc 100644 --- a/heartbeat/ocf.py +++ b/heartbeat/ocf.py @@ -94,6 +94,7 @@ HA_LOGFACILITY = env.get("HA_LOGFACILITY") HA_LOGFILE = env.get("HA_LOGFILE") HA_DEBUGLOG = env.get("HA_DEBUGLOG") +logging.basicConfig() log = logging.getLogger(os.path.basename(argv[0])) log.setLevel(logging.DEBUG) -- 2.16.4
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