catch exceptions from snapshot
This commit is contained in:
parent
2e42d3336a
commit
6fdd52467d
@ -173,8 +173,12 @@ class Snapshot
|
|||||||
// XXX: Use OICU2 and OAuth to make authorized requests
|
// XXX: Use OICU2 and OAuth to make authorized requests
|
||||||
|
|
||||||
$reporturl = common_config('snapshot', 'reporturl');
|
$reporturl = common_config('snapshot', 'reporturl');
|
||||||
$request = HTTPClient::start();
|
try {
|
||||||
$request->post($reporturl, null, $this->stats);
|
$request = HTTPClient::start();
|
||||||
|
$request->post($reporturl, null, $this->stats);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
common_log(LOG_WARNING, "Error in snapshot: " . $e->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user