swift-metrics/Sources
Christian Priebe f1514a4c74
Bugfix: Print correct error message if bootstrap is called multiple times (#57)
MetricsSystem.bootstrap verifies that the metric system has not been previously
initialized. Otherwise it should fail with a corresponding error message. The
precondition error message includes the name of the currently used factory and
for that accesses self.factory. However, because bootstrap already holds
self.lock as a writer lock, self.factory fails to get it as a reader and
crashes with a less useful precondition error message. This commit ensures that
the correct error message is printed.
2020-02-10 11:11:28 -08:00
..
CoreMetrics Bugfix: Print correct error message if bootstrap is called multiple times (#57) 2020-02-10 11:11:28 -08:00
Metrics Update Timer.measure() to use DispatchTime instead of Date 2019-11-11 09:39:33 +09:00