Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 12cb3ca

Browse files
fixing some logging issues
1 parent afb19a7 commit 12cb3ca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

backend/dhri/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010

1111
def _get_parts_of_log_message(message):
12+
message = re.sub('\n+', ' ', message)
1213
g = re.search(r'(.*)\:\s(.*)', message)
1314
if not g:
1415
return((message, ''))

backend/management/commands/downloaddata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def handle(self, *args, **options):
5454
repo = d
5555
#LOG.error(f"Cannot understand repo {repo}.")
5656

57+
LOG.log(f"Starting import: {repo} ({branch})", force=True)
58+
5759
try:
5860
l = Loader(f'https://github.com/DHRI-Curriculum/{repo}', branch, force_download=True)
5961
except MissingRequiredSection as e:
@@ -66,7 +68,7 @@ def handle(self, *args, **options):
6668

6769
repo_name = get_or_default('Workshop name', auto_replace(repo_name.title()))
6870
LOG.name = l.repo_name
69-
#LOG.original_name = LOG.name
71+
7072

7173
workshop, created = Workshop.objects.get_or_create(
7274
name = repo_name,

0 commit comments

Comments
 (0)