mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Add FileSystemWatcher log messages
This commit is contained in:
parent
25a0147f61
commit
9b552c463f
1 changed files with 3 additions and 3 deletions
|
@ -40,6 +40,7 @@
|
||||||
#include "base/bittorrent/magneturi.h"
|
#include "base/bittorrent/magneturi.h"
|
||||||
#include "base/bittorrent/torrentinfo.h"
|
#include "base/bittorrent/torrentinfo.h"
|
||||||
#include "base/global.h"
|
#include "base/global.h"
|
||||||
|
#include "base/logger.h"
|
||||||
#include "base/preferences.h"
|
#include "base/preferences.h"
|
||||||
#include "base/utils/fs.h"
|
#include "base/utils/fs.h"
|
||||||
|
|
||||||
|
@ -83,8 +84,7 @@ void FileSystemWatcher::addPath(const QString &path)
|
||||||
// Check if the path points to a network file system or not
|
// Check if the path points to a network file system or not
|
||||||
if (Utils::Fs::isNetworkFileSystem(path)) {
|
if (Utils::Fs::isNetworkFileSystem(path)) {
|
||||||
// Network mode
|
// Network mode
|
||||||
qDebug("Network folder detected: %s", qUtf8Printable(path));
|
LogMsg(tr("Watching remote folder: \"%1\"").arg(Utils::Fs::toNativePath(path)));
|
||||||
qDebug("Using file polling mode instead of inotify...");
|
|
||||||
m_watchedFolders << dir;
|
m_watchedFolders << dir;
|
||||||
|
|
||||||
m_watchTimer.start(WATCH_INTERVAL);
|
m_watchTimer.start(WATCH_INTERVAL);
|
||||||
|
@ -93,7 +93,7 @@ void FileSystemWatcher::addPath(const QString &path)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Normal mode
|
// Normal mode
|
||||||
qDebug("FS Watcher is watching %s in normal mode", qUtf8Printable(path));
|
LogMsg(tr("Watching local folder: \"%1\"").arg(Utils::Fs::toNativePath(path)));
|
||||||
QFileSystemWatcher::addPath(path);
|
QFileSystemWatcher::addPath(path);
|
||||||
scanLocalFolder(path);
|
scanLocalFolder(path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue