Skip to content

Commit

Permalink
remove redundant print and add the printout
Browse files Browse the repository at this point in the history
  • Loading branch information
hoptical committed Feb 18, 2024
1 parent bb76f18 commit 47ab65b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/helper/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def __init__(self, url, **kv):
def get_current_value(self, query) -> pd.DataFrame:
try:
result = self.client.custom_query(query)
print(result)
except RequestException:
logger.error(
"connection error while handling query {}".format(query),
Expand Down
2 changes: 2 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def main(config_path: str, output_path: str):
if not output_handler.validate(result):
logger.error("output schema is not valid")
raise
logger.info("result is saved to {}".format(config_path))
logger.info(result)


if __name__ == "__main__":
Expand Down

0 comments on commit 47ab65b

Please sign in to comment.