Mercurial > hg > orthanc
comparison OrthancServer/Sources/main.cpp @ 5493:b3ebe249ed5b pg-transactions
At startup, when using a database plugin, display the latency to access the DB
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 15 Jan 2024 18:25:08 +0100 |
parents | 38f1d06875ad |
children | 3e02be2ccaee |
comparison
equal
deleted
inserted
replaced
5492:26877f4b306f | 5493:b3ebe249ed5b |
---|---|
1670 if (!database.GetDatabaseCapabilities().HasLabelsSupport()) | 1670 if (!database.GetDatabaseCapabilities().HasLabelsSupport()) |
1671 { | 1671 { |
1672 LOG(WARNING) << "The custom database back-end has *no* support for labels"; | 1672 LOG(WARNING) << "The custom database back-end has *no* support for labels"; |
1673 } | 1673 } |
1674 | 1674 |
1675 if (database.GetDatabaseCapabilities().HasMeasureLatency()) | |
1676 { | |
1677 LOG(WARNING) << "The DB latency is " << database.MeasureLatency() << " µs"; | |
1678 } | |
1679 | |
1680 | |
1675 bool success = ConfigureServerContext(database, storageArea, plugins, loadJobsFromDatabase); | 1681 bool success = ConfigureServerContext(database, storageArea, plugins, loadJobsFromDatabase); |
1676 | 1682 |
1677 database.Close(); | 1683 database.Close(); |
1678 | 1684 |
1679 return success; | 1685 return success; |