Skip to content

Commit f7ec147

Browse files
committed
use HNSWERR instead of std::cerr directly
1 parent 5b3d81b commit f7ec147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hnswlib/hnswalg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
105105
if ( M <= 10000 ) {
106106
M_ = M;
107107
} else {
108-
std::cerr << "warning: M parameter exceeds 10000 which may lead to adverse effects." << std::endl;
109-
std::cerr << " Cap to 10000 will be applied for the rest of the processing." << std::endl;
108+
HNSWERR << "warning: M parameter exceeds 10000 which may lead to adverse effects." << std::endl;
109+
HNSWERR << " Cap to 10000 will be applied for the rest of the processing." << std::endl;
110110
M_ = 10000;
111111
}
112112
maxM_ = M_;

0 commit comments

Comments
 (0)