summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilyamaschenko@gmail.com>2019-03-11 00:26:36 +0300
committerGitHub <noreply@github.com>2019-03-11 00:26:36 +0300
commit992a5afb71be9af6e73c88dad7f6e8faf281bf98 (patch)
tree1fddd09ad7bf7a34893a6ced1854b2201f78ae21
parente88794c934a717e806e2a6d97aa6173d5c559c45 (diff)
spigotmc fix UnicodeDecodeError (#5598)
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary Fix [UnicodeDecodeError](https://github.com/netdata/netdata/pull/5507#issuecomment-471344661) ##### Component Name [`collectors/python.d.plugin/spigotmc`](https://github.com/netdata/netdata/tree/master/collectors/python.d.plugin/spigotmc) ##### Additional Information
-rw-r--r--collectors/python.d.plugin/spigotmc/spigotmc.chart.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/collectors/python.d.plugin/spigotmc/spigotmc.chart.py b/collectors/python.d.plugin/spigotmc/spigotmc.chart.py
index 16b9d12ea2..536fbe6a89 100644
--- a/collectors/python.d.plugin/spigotmc/spigotmc.chart.py
+++ b/collectors/python.d.plugin/spigotmc/spigotmc.chart.py
@@ -116,7 +116,6 @@ class Service(SimpleService):
try:
raw = self.console.command(COMMAND_TPS)
- self.debug("'{0}' command output : {1}".format(COMMAND_TPS, raw))
match = _TPS_REGEX.match(raw)
if match:
data['tps1'] = int(float(match.group(1)) * PRECISION)
@@ -135,11 +134,9 @@ class Service(SimpleService):
try:
raw = self.console.command(COMMAND_LIST)
- self.debug("'{0}' command output : {1}".format(COMMAND_LIST, raw))
match = _LIST_REGEX.search(raw)
if not match:
raw = self.console.command(COMMAND_ONLINE)
- self.debug("'{0}' command output : {1}".format(COMMAND_ONLINE, raw))
match = _LIST_REGEX.search(raw)
if match:
data['users'] = int(match.group(1))