Adds useful log warnings re: repo failures
authorJoshua C. Randall <jcrandall@alum.mit.edu>
Fri, 31 Jul 2015 01:00:28 +0000 (02:00 +0100)
committerJoshua C. Randall <jcrandall@alum.mit.edu>
Fri, 31 Jul 2015 01:00:28 +0000 (02:00 +0100)
commit800e8ba4da76590c8cbe9801bef49a7ffb30bfbc
treedc4bbacf22b406d88dd50b2b7d40947d2aa78131
parent59e45dbc9ef35513c9a32785158274b86d4e003d
Adds useful log warnings re: repo failures

Instruments the find_commit_range function such that it logs an
explanatory warning in any case when it fails to find any refs.

When no refs are found, find_commit_range returns an empty list
which typically causes its caller to throw an exception. Without
these added warnings, that exception is not at all helpful in
tracking down the underlying issue.
services/api/app/models/commit.rb