Improve logging
This commit is contained in:
parent
980da038b7
commit
b9170388b6
@ -47,7 +47,7 @@ Monitor::operator bool() const
|
||||
|
||||
bool Monitor::hasBrightnessCapability() const
|
||||
{
|
||||
qDebug(ltr("Getting capabilities for monitor '%1' with handle '0x%2' and physical handle '0x%3'")
|
||||
qDebug(ltr("Getting capabilities of monitor '%1' with handle '0x%2' and physical handle '0x%3'")
|
||||
.arg(m_physicalMonitor.name)
|
||||
.arg(reinterpret_cast<qulonglong>(m_hMonitor), 0, 16)
|
||||
.arg(reinterpret_cast<qulonglong>(m_physicalMonitor.handle), 0, 16));
|
||||
@ -56,7 +56,9 @@ bool Monitor::hasBrightnessCapability() const
|
||||
DWORD colorTemperatures = 0;
|
||||
|
||||
if(!GetMonitorCapabilities(m_physicalMonitor.handle, &monitorCapabilities, &colorTemperatures)) {
|
||||
qCritical(ltr("Failed to get capabilities for monitor '0x%1', error: %2")
|
||||
qCritical(ltr("Failed to get capabilities of monitor '%1' with handle '0x%2' and physical handle '0x%3', error: %4")
|
||||
.arg(m_physicalMonitor.name)
|
||||
.arg(reinterpret_cast<qulonglong>(m_hMonitor), 0, 16)
|
||||
.arg(reinterpret_cast<qulonglong>(m_physicalMonitor.handle), 0, 16)
|
||||
.arg(getLastErrorString()));
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user