Skip to content

Commit 1ffc527

Browse files
gkorlandgavrie
authored andcommitted
remove debug!
1 parent d624db4 commit 1ffc527

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ macro_rules! debug {
2525

2626
impl Index {
2727
pub fn create(name: &str) -> Self {
28-
debug!("Creating index '{}'", name);
28+
// debug!("Creating index '{}'", name);
2929

3030
let name = CString::new(name).unwrap();
3131
let index = unsafe { raw::RediSearch_CreateIndex(name.as_ptr(), ptr::null()) };
3232
Self { inner: index }
3333
}
3434

3535
pub fn create_with_options(name: &str, options: &IndexOptions) -> Self {
36-
debug!("Creating index with options '{}'", name);
36+
// debug!("Creating index with options '{}'", name);
3737
let index_options =
3838
unsafe { raw::RediSearch_CreateIndexOptions().as_mut() }.expect("null IndexOptions");
3939

@@ -48,7 +48,7 @@ impl Index {
4848
}
4949

5050
pub fn create_field(&self, name: &str) -> Field {
51-
debug!("Creating index field '{}'", name);
51+
// debug!("Creating index field '{}'", name);
5252
let name = CString::new(name).unwrap();
5353

5454
let ftype = raw::RSFLDTYPE_FULLTEXT;
@@ -64,7 +64,7 @@ impl Index {
6464
}
6565

6666
pub fn add_document(&self, doc: &Document) -> Result<(), RedisError> {
67-
debug!("Adding document to index");
67+
// debug!("Adding document to index");
6868
let status = unsafe {
6969
raw::RediSearch_IndexAddDocument(
7070
self.inner,
@@ -133,7 +133,7 @@ impl Iterator for ResultsIterator<'_> {
133133
return None;
134134
}
135135

136-
debug!("Getting next result");
136+
// debug!("Getting next result");
137137

138138
let mut len = 0usize;
139139
let key = unsafe {
@@ -160,7 +160,7 @@ impl Drop for ResultsIterator<'_> {
160160
return;
161161
}
162162

163-
debug!("Freeing results iterator");
163+
// debug!("Freeing results iterator");
164164
unsafe {
165165
raw::RediSearch_ResultsIteratorFree(self.inner);
166166
};

0 commit comments

Comments
 (0)