Skip to content

Commit

Permalink
Fixing bug in parsing build logs (#36)
Browse files Browse the repository at this point in the history
* fixing bug in parsing build logs
* remove extra prints

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Co-authored-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch and vsoch committed Oct 12, 2021
1 parent 28f3b3a commit 4fca67d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spackmon/apps/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def validate_jwt(request):
# Ensure that the jti is still valid
filecache = cache.caches["spackmon_api"]
if not filecache.get(decoded.get("jti")) == "good":
print("Filecache with jti not found.")
print("jwt not found in cache.")
return False, None

# The user must exist
Expand Down
4 changes: 2 additions & 2 deletions spackmon/apps/main/logparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def parse_build_logs(build):
log = BW.objects.create(
phase=phase,
source_file=warning.source_file,
source_line_no=warning.source_line_no,
source_line_no=warning.source_line_no or 0,
line_no=warning.line_no,
repeat_count=warning.repeat_count,
start=warning.start,
Expand All @@ -113,7 +113,7 @@ def parse_build_logs(build):
log = BE.objects.create(
phase=phase,
source_file=error.source_file,
source_line_no=source_line_no,
source_line_no=source_line_no or 0,
line_no=error.line_no,
repeat_count=error.repeat_count,
start=error.start,
Expand Down

0 comments on commit 4fca67d

Please sign in to comment.