8000 Update setup_env.py · izam-mohammed/data-source@4e7c4d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e7c4d3

Browse files
Update setup_env.py
1 parent 7c9634a commit 4e7c4d3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

setup_env.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,10 @@
660660

661661
import os
662662
import sys
663+
import logging
664+
665+
logging.basicConfig(level=logging.INFO, format="[%(asctime)s]: %(message)s:")
666+
663667
try:
664668
argv = sys.argv[1:]
665669
project_config = ["", "", ""]
@@ -679,8 +683,11 @@
679683
f.write(config_files[filepath]["data"].format(project_name=project_name, short_description=shortdescription))
680684
elif filepath == "CONTRIBUTING.md":
681685
f.write(config_files[filepath]["data"].format(project_name=project_name, repo_name=repo_name))
682-
f.write(config_files[filepath]["data"])
686+
else:
687+
f.write(config_files[filepath]["data"])
688+
logging.info(f"wrote the file {filepath}")
683689
else:
684-
print(f"{filepath} is already exists")
690+
logging.info(f"{filepath} is already exists")
685691
except Exception as e:
692+
logging.info(f"error - {e}")
686693
raise e

0 commit comments

Comments
 (0)
0