turn some warnings into errors to avoid spamming the log

This commit is contained in:
Michael Zanetti 2018-03-12 15:25:38 +01:00
parent 02fac52561
commit bfe6496381

View File

@ -52,17 +52,17 @@ bool SnapdControl::available() const
{ {
QFileInfo fileInfo(m_snapdSocketPath); QFileInfo fileInfo(m_snapdSocketPath);
if (!fileInfo.exists()) { if (!fileInfo.exists()) {
qCWarning(dcSnapd()) << "The socket descriptor" << m_snapdSocketPath << "does not exist"; qCDebug(dcSnapd()) << "The socket descriptor" << m_snapdSocketPath << "does not exist";
return false; return false;
} }
if (!fileInfo.isReadable()) { if (!fileInfo.isReadable()) {
qCWarning(dcSnapd()) << "The socket descriptor" << m_snapdSocketPath << "is not readable"; qCDebug(dcSnapd()) << "The socket descriptor" << m_snapdSocketPath << "is not readable";
return false; return false;
} }
if (!fileInfo.isWritable()) { if (!fileInfo.isWritable()) {
qCWarning(dcSnapd()) << "The socket descriptor" << m_snapdSocketPath << "is not writable"; qCDebug(dcSnapd()) << "The socket descriptor" << m_snapdSocketPath << "is not writable";
return false; return false;
} }