Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[windows][jmxfetch] fix logging initilization from jmxfetch python #2065

Merged
merged 1 commit into from
Nov 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions win32/agent.py
Original file line number Diff line number Diff line change
@@ -329,9 +329,14 @@ def __init__(self, agentConfig, hostname):
self.is_enabled = False

def run(self):
from config import initialize_logging
initialize_logging('jmxfetch')
if self.is_enabled:
log.debug("Windows Service - Starting JMXFetch")
JMXFiles.clean_exit_file()
self.jmx_daemon.run()
else:
log.info("Windows Service - Not starting JMXFetch: no valid configuration found")

def terminate(self):
"""