impl/linux/file_watch: Reduce log level of common messages

This commit is contained in:
Perttu Ahola 2014-10-29 10:19:10 +02:00
parent 13b72276c8
commit 237ab86376

View File

@ -45,7 +45,7 @@ struct CFileWatch: FileWatch
for(auto &pair : m_watch){ for(auto &pair : m_watch){
sp_<WatchThing> &watch = pair.second; sp_<WatchThing> &watch = pair.second;
if(watch->path == path){ if(watch->path == path){
log_d(MODULE, "Adding callback to path \"%s\" (inotify fd=%i)", log_t(MODULE, "Adding callback to path \"%s\" (inotify fd=%i)",
cs(path), pair.first); cs(path), pair.first);
watch->cbs.push_back(cb); watch->cbs.push_back(cb);
return; return;
@ -58,7 +58,7 @@ struct CFileWatch: FileWatch
throw Exception(ss_()+"inotify_add_watch() failed: "+ throw Exception(ss_()+"inotify_add_watch() failed: "+
strerror(errno)+" (path="+path+")"); strerror(errno)+" (path="+path+")");
} }
log_d(MODULE, "Watching path \"%s\" (inotify fd=%i)", cs(path), m_fd); log_t(MODULE, "Watching path \"%s\" (inotify fd=%i)", cs(path), m_fd);
m_watch[r] = sp_<WatchThing>(new WatchThing(path, {cb})); m_watch[r] = sp_<WatchThing>(new WatchThing(path, {cb}));
} }