turn some warnings into errors to avoid spamming the log

master
Michael Zanetti 2018-03-12 15:25:38 +01:00
parent 02fac52561
commit bfe6496381
1 changed files with 3 additions and 3 deletions

View File

@ -52,17 +52,17 @@ bool SnapdControl::available() const
{
QFileInfo fileInfo(m_snapdSocketPath);
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;
}
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;
}
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;
}