add log statement for error, uncomment update link

This commit is contained in:
shawnps
2015-02-07 15:01:59 -08:00
parent 2f85ac52bd
commit f2892bb831
2 changed files with 2 additions and 3 deletions

View File

@@ -233,6 +233,7 @@ func checkHandler(w http.ResponseWriter, r *http.Request) {
forceRefresh := r.Method != "GET" // if this is a GET request, try fetch from cached version in mongo first
resp, err := newChecksResp(repo, forceRefresh)
if err != nil {
log.Println("ERROR: ", err)
b, _ := json.Marshal(err)
w.WriteHeader(http.StatusInternalServerError)
w.Write(b)

View File

@@ -258,12 +258,10 @@
</tr>
</script>
<script id="template-lastrefresh" type="text/x-handlebars-template">
<!--
<p>Last refresh: {{last_refresh}} <a class="refresh-button" href=""><strong>Update now</strong></a></p>
<div class="col-md-12 text-right">
<a class="copy-button" data-repo="{{repo}}" href="/badge/{{repo}}"><img src="/badge/{{repo}}"/></a>
<!-- <a class="copy-button" data-repo="{{repo}}" href="/badge/{{repo}}"><img src="/badge/{{repo}}"/></a> -->
</div>
-->
</script>
<script type="text/javascript">
var loading = false;