Skip to content

Commit 17e3591

Browse files
cleanup: Fix log level to trace instead of warn (#413)
1 parent 16d4767 commit 17e3591

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

indexer/IdPathMappings.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,21 @@ bool FileMetadataMap::insert(clang::FileID fileId, AbsolutePathRef absPathRef) {
139139
/*isInProject*/ true);
140140
} else {
141141
checkInProjectPath = false;
142-
spdlog::warn("projectRoot.join(relativePath (= '{}'/'{}')) exists but "
143-
"the real path is '{}",
144-
this->projectRootPath.asRef().asStringView(),
145-
buildRootRelPath->asStringView(),
146-
llvm_ext::toStringView(realPath.str()));
142+
spdlog::trace("projectRoot.join(relativePath (= '{}'/'{}')) exists but "
143+
"the real path is '{}",
144+
this->projectRootPath.asRef().asStringView(),
145+
buildRootRelPath->asStringView(),
146+
llvm_ext::toStringView(realPath.str()));
147147
}
148148
} else if (error == std::errc::no_such_file_or_directory) {
149-
spdlog::warn(
149+
spdlog::trace(
150150
"failed to find file in project at '{}' (root: '{}', rel: '{}')",
151151
originalFileSourcePath.asStringRef(),
152152
this->projectRootPath.asRef().asStringView(),
153153
buildRootRelPath->asStringView());
154154
} else {
155-
spdlog::warn("hit error: {} when getting real path for {}",
156-
error.message(), originalFileSourcePath.asStringRef());
155+
spdlog::trace("hit error: {} when getting real path for {}",
156+
error.message(), originalFileSourcePath.asStringRef());
157157
}
158158
}
159159

0 commit comments

Comments
 (0)