Skip to content

Commit

Permalink
Merge pull request #289 from whdalsrnt/master
Browse files Browse the repository at this point in the history
chore: add debugging logs
  • Loading branch information
whdalsrnt authored Sep 26, 2024
2 parents 5b54b78 + e8e38af commit 3ed00be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/spaceone/cost_analysis/service/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ def get_cost_data(self, params):
count = 0
is_canceled = False

_LOGGER.debug(
f"[get_cost_data] start job ({job_task_id}): {task_options}"
)

for costs_data in self.ds_plugin_mgr.get_cost_data(
options, secret_data, schema, task_options, domain_id
):
Expand Down Expand Up @@ -288,7 +292,7 @@ def get_cost_data(self, params):

if not is_canceled:
end_dt = datetime.utcnow()
_LOGGER.debug(f"[get_cost_data] end job ({job_task_id}): {end_dt}")
_LOGGER.debug(f"[get_cost_data] end job ({job_task_id}): {count}")
_LOGGER.debug(
f"[get_cost_data] total job time ({job_task_id}): {end_dt - start_dt}"
)
Expand Down Expand Up @@ -981,7 +985,7 @@ def _aggregate_monthly_cost_data(
row_count += 1

_LOGGER.debug(
f"[_aggregate_monthly_cost_data] create monthly costs ({billed_month}): {job_id}, {job_task} (count = {row_count})"
f"[_aggregate_monthly_cost_data] create monthly costs ({billed_month}): {job_id}, {job_task_id} (count = {row_count})"
)

def _get_all_data_sources(self):
Expand Down

0 comments on commit 3ed00be

Please sign in to comment.