Skip to content

Commit fb93d8d

Browse files
authored
Merge pull request #316 from Phanindra899/fix-random-number-logs
Improve UrlNotFoundException logging context
2 parents 9592863 + 74dadd1 commit fb93d8d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

collectoss/tasks/data_analysis/contributor_breadth_worker/contributor_breadth_worker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ def contributor_breadth_model(self) -> None:
113113
if len(cntrb_events) == 0:
114114
logger.info("There are no cntrb events, or new events for this user.\n")
115115
continue
116-
117116
except UrlNotFoundException as e:
118-
logger.warning(e)
117+
logger.warning(
118+
f"UrlNotFoundException while processing contributor {cntrb['gh_login']}: {e}"
119+
)
119120
continue
120-
121121
events = process_contributor_events(cntrb, cntrb_events, logger, tool_source, tool_version, data_source)
122122

123123
logger.info(f"Inserting {len(events)} events")

0 commit comments

Comments
 (0)