Skip to content

Commit

Permalink
chore: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
seyLu committed Sep 1, 2023
1 parent 5dbfdb5 commit ebf8dba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/_create_label_config.py → scripts/_dump_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def main() -> None:
labels_file = os.path.join(LABELS_PATH, f"{field.lower()}_labels.{EXT}")

with open(labels_file, "w+") as f:
logging.info(f"Dumping to {labels_file}.")

if EXT == "yaml":
print(
yaml.dump(
Expand All @@ -116,6 +118,8 @@ def main() -> None:
elif EXT == "json":
json.dump(labels, f, indent=2)

logging.info("Finished dumping of labels.")


if __name__ == "__main__":
main()

0 comments on commit ebf8dba

Please sign in to comment.