Merge pull request #93 from danielrichman/master

Produce full traceback, and commit small changes from kraken.
pull/94/head
Adam Greig 2012-08-24 12:52:34 -07:00
commit 912e8c26dd
4 zmienionych plików z 10 dodań i 8 usunięć

Wyświetl plik

@ -594,9 +594,7 @@ if __name__ == '__main__':
except Exception as e: except Exception as e:
statsd.increment("uncaught_exception") statsd.increment("uncaught_exception")
log.exception("Uncaught exception") log.exception("Uncaught exception")
(exc_type, exc_value, discard_tb) = sys.exc_info() info = traceback.format_exc()
exc_tb = traceback.format_exception_only(exc_type, exc_value)
info = exc_tb[-1].strip()
if progress_f: if progress_f:
update_progress(error="Unhandled exception: " + info) update_progress(error="Unhandled exception: " + info)
raise raise

Wyświetl plik

@ -54,6 +54,10 @@ a { text-decoration: underline; color: #333; cursor: pointer; }
display: none; display: none;
} }
#debuginfo {
white-space: pre;
}
#burst-calc-wrapper { #burst-calc-wrapper {
position: absolute; position: absolute;
left: 50%; left: 50%;

Wyświetl plik

@ -16,7 +16,7 @@ require_once("includes/config.inc.php");
require_once("includes/functions.inc.php"); require_once("includes/functions.inc.php");
$stats = new StatsD(); $stats = new StatsD();
$stats->counting('hits'); $stats->counting('habhub.predictor.php.hits');
// Get the time for pre-populating the form // Get the time for pre-populating the form
$time = time() + 3600; $time = time() + 3600;

Wyświetl plik

@ -29,10 +29,10 @@
"latitude" : -35.1217, "latitude" : -35.1217,
"longitude" : 138.8503 "longitude" : 138.8503
}, },
"An Creagan": { "Cookstown": {
"altitude" : 0, "altitude" : 60,
"latitude" : 54.654118, "latitude" : 54.632162,
"longitude" : -7.034914 "longitude" : -6.757982
}, },
"Preston St Mary": { "Preston St Mary": {
"latitude" : 52.1215, "latitude" : 52.1215,