turn some warnings into errors to avoid spamming the log
This commit is contained in:
parent
02fac52561
commit
bfe6496381
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user