Commit 521c140d authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[trac547] removed the parts of subscription/unsubscription for the stats module

parent 7b167758
...@@ -167,9 +167,6 @@ class StatsHttpd: ...@@ -167,9 +167,6 @@ class StatsHttpd:
self.stats_module_spec = isc.config.module_spec_from_file(STATS_SPECFILE_LOCATION) self.stats_module_spec = isc.config.module_spec_from_file(STATS_SPECFILE_LOCATION)
self.stats_config_spec = self.stats_module_spec.get_config_spec() self.stats_config_spec = self.stats_module_spec.get_config_spec()
self.stats_module_name = self.stats_module_spec.get_module_name() self.stats_module_name = self.stats_module_spec.get_module_name()
if self.verbose:
self.write_log("[b10-stats-httpd] Starts to subscribe stats module\n")
self.cc_session.group_subscribe(self.stats_module_name, "*")
def close_mccs(self): def close_mccs(self):
"""Closes a ModuleCCSession object""" """Closes a ModuleCCSession object"""
...@@ -177,11 +174,6 @@ class StatsHttpd: ...@@ -177,11 +174,6 @@ class StatsHttpd:
return return
if self.verbose: if self.verbose:
self.write_log("[b10-stats-httpd] Closing CC Session\n") self.write_log("[b10-stats-httpd] Closing CC Session\n")
try:
self.cc_session.group_unsubscribe(self.stats_module_name, "*")
except isc.cc.session.SessionError as se:
if self.verbose:
self.write_log("[b10-stats-httpd] Failed to unsubscribe stats module\n")
self.mccs.close() self.mccs.close()
self.mccs = None self.mccs = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment