Skip to content

Commit

Permalink
correct fk_provider check message. change count to logger.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed Jan 23, 2025
1 parent eb149a6 commit 989b309
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qgepqwat2ili/utils/ili2db.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def check_fk_owner_null():
missing_fk_owner_count = missing_fk_owner_count + class_fk_owner_count

# add for testing
logger.info(f"missing_fk_owner_count : {missing_fk_owner_count}")
logger.debug(f"missing_fk_owner_count : {missing_fk_owner_count}")

if missing_fk_owner_count == 0:
check_fk_owner_null = True
Expand Down Expand Up @@ -258,7 +258,7 @@ def check_fk_operator_null():
else:
missing_fk_operator_count = missing_fk_operator_count + int(cursor.fetchone()[0])
# add for testing
logger.info(f"missing_fk_operator_count : {missing_fk_operator_count}")
logger.debug(f"missing_fk_operator_count : {missing_fk_operator_count}")

if missing_fk_operator_count == 0:
logger.info("OK: all mandatory fk_operator set in qgep_od!")
Expand Down Expand Up @@ -345,7 +345,7 @@ def check_fk_dataowner_null():
missing_fk_dataowner_count = missing_fk_dataowner_count + class_fk_dataowner_count

# add for testing
logger.info(f"missing_fk_dataowner_count : {missing_fk_dataowner_count}")
logger.debug(f"missing_fk_dataowner_count : {missing_fk_dataowner_count}")

if missing_fk_dataowner_count == 0:
logger.info("OK: all mandatory fk_dataowner set in qgep_od!")
Expand Down Expand Up @@ -420,7 +420,7 @@ def check_fk_provider_null():
# f"Number of datasets in class '{notsubclass}' without fk_provider : {cursor.fetchone()[0]}"
# )
logger.info(
f"Number of datasets in class '{notsubclass}' without fk_dataowner : {class_fk_provider_count}"
f"Number of datasets in class '{notsubclass}' without fk_provider : {class_fk_provider_count}"
)

# if cursor.fetchone() is None:
Expand All @@ -431,7 +431,7 @@ def check_fk_provider_null():
missing_fk_provider_count = missing_fk_provider_count + class_fk_provider_count

# add for testing
logger.info(f"missing_fk_provider_count : {missing_fk_provider_count}")
logger.debug(f"missing_fk_provider_count : {missing_fk_provider_count}")

if missing_fk_provider_count == 0:
logger.info("OK: all mandatory fk_provider set in qgep_od!")
Expand Down

0 comments on commit 989b309

Please sign in to comment.