From b61faebe7aed2b79ec846a30ce9dde7857a1deba Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Wed, 22 Jul 2020 16:52:49 -0500 Subject: [PATCH] Remove some verbosity added when debugging. --- metrics | 4 ++-- modules/discourse.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/metrics b/metrics index 212ddc5..58af576 100755 --- a/metrics +++ b/metrics @@ -90,9 +90,9 @@ def main(module): for day in (1, 7, 30, 90, 180): # Fetch the data and log to debug run = [module.sqlite_time_range(days=day)] - log.info(run) + log.debug(run) data = sqlite_run(run, db=args.db_location, return_output=True) - log.info(data) + log.debug(data) # Render the template, which also returns the average values _averages[day] = module.render_template(day, data) diff --git a/modules/discourse.py b/modules/discourse.py index 5ae5a9e..036b454 100755 --- a/modules/discourse.py +++ b/modules/discourse.py @@ -83,7 +83,6 @@ class DiscourseModule: on_page = len(topics) page += 1 - print("Working on " + category["name"]) for topic in topics: # Increment total_all data[4] += 1 @@ -138,7 +137,6 @@ class DiscourseModule: date = "strftime('%s', 'now')" # Craft the str - print(data) command = "INSERT INTO discourse VALUES (" command += "{}, {}, {}, {}, {}, {}, {});".format(date, *data) @@ -176,7 +174,6 @@ class DiscourseModule: # Use a lambda to map the data into a dict with the keys for row in data: - print(row) _data = {keys[x] : row[x] for x in range(len(row))} # Add our ephemeral dict to the master dict, and create the key if