Skip to content

Commit

Permalink
remove unwanted logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yyuuttaaoo committed Nov 16, 2024
1 parent 92642c2 commit 250d6d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions core/file_server/EventDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,6 @@ void EventDispatcher::HandleTimeout() {
time_t curTime = time(NULL);
MapType<int, time_t>::Type::iterator itr = mWdUpdateTimeMap.begin();
for (; itr != mWdUpdateTimeMap.end(); ++itr) {
LOG_ERROR(sLogger,
("path", mWdDirInfoMap[itr->first]->mPath)("curTime", curTime)("lastupdatetime", itr->second));
if (curTime - (itr->second) > INT32_FLAG(timeout_interval)) {
// add to vector then batch process to avoid possible iterator change problem
// mHandler may remove what itr points to, thus change the layout of the map container
Expand Down
2 changes: 1 addition & 1 deletion core/file_server/polling/PollingDirFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ bool PollingDirFile::PollingNormalConfigPath(const FileDiscoveryConfig& pConfig,
if (pConfig.first->mMaxDirSearchDepth >= 0 && depth > pConfig.first->mMaxDirSearchDepth) {
return false;
}
int exceedPreservedDirDepth = 0;
bool exceedPreservedDirDepth = false;
if (pConfig.first->mPreservedDirDepth >= 0 && depth > pConfig.first->mPreservedDirDepth) {
exceedPreservedDirDepth = true;
int64_t sec = 0;
Expand Down

0 comments on commit 250d6d3

Please sign in to comment.