mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
Fix unhandled rejection (#504)
This commit is contained in:
parent
20f81106ed
commit
57df4f9400
1 changed files with 5 additions and 1 deletions
|
|
@ -148,7 +148,11 @@ async function main() {
|
|||
|
||||
const metricsReader = new PrometheusUsageMetrics(prometheusClient);
|
||||
const toMetricsId = (id: AccessKeyId) => {
|
||||
return accessKeyRepository.getMetricsId(id);
|
||||
try {
|
||||
return accessKeyRepository.getMetricsId(id);
|
||||
} catch (e) {
|
||||
logging.warn(`Failed to get metrics id for access key ${id}: ${e}`);
|
||||
}
|
||||
};
|
||||
const managerMetrics = new PrometheusManagerMetrics(prometheusClient);
|
||||
const metricsCollector = new RestMetricsCollectorClient(metricsCollectorUrl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue