]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/smb: silence noisy debug messages
authorVictor Julien <victor@inliniac.net>
Thu, 18 Oct 2018 15:28:48 +0000 (17:28 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 18 Oct 2018 19:43:58 +0000 (21:43 +0200)
rust/src/smb/debug.rs

index f6589fdacd8f7373146f0d6f6ca74e44f3826d98..ab5376c7f20eeb250c33fd290d933c7ca957292f 100644 (file)
@@ -30,9 +30,9 @@ impl SMBState {
             let txf = self.transactions.first().unwrap();
             let txl = self.transactions.last().unwrap();
 
-            SCLogNotice!("TXs {} MIN {} MAX {}", self.transactions.len(), txf.id, txl.id);
-            SCLogNotice!("- OLD tx.id {}: {:?}", txf.id, txf);
-            SCLogNotice!("- NEW tx.id {}: {:?}", txl.id, txl);
+            SCLogDebug!("TXs {} MIN {} MAX {}", self.transactions.len(), txf.id, txl.id);
+            SCLogDebug!("- OLD tx.id {}: {:?}", txf.id, txf);
+            SCLogDebug!("- NEW tx.id {}: {:?}", txl.id, txl);
             self._dump_txs();
         }
     }
@@ -61,7 +61,7 @@ impl SMBState {
                             String::from_utf8_lossy(&d.file_name), tx.type_data);
                 },
                 _ => {
-                    SCLogNotice!("idx {} tx id {} ver:{} cmd:{} progress {}/{} type_data {:?} tx {:?}",
+                    SCLogDebug!("idx {} tx id {} ver:{} cmd:{} progress {}/{} type_data {:?} tx {:?}",
                             i, tx.id, ver, _smbcmd, tx.request_done, tx.response_done, tx.type_data, tx);
                 },
             }
@@ -73,6 +73,6 @@ impl SMBState {
 
     #[cfg(feature = "debug")]
     pub fn _debug_state_stats(&self) {
-        SCLogNotice!("ssn2vec_map {} guid2name_map {} ssn2vecoffset_map {} ssn2tree_map {} ssnguid2vec_map {} tcp_buffer_ts {} tcp_buffer_tc {} file_ts_guid {} file_tc_guid {} transactions {}", self.ssn2vec_map.len(), self.guid2name_map.len(), self.ssn2vecoffset_map.len(), self.ssn2tree_map.len(), self.ssnguid2vec_map.len(), self.tcp_buffer_ts.len(), self.tcp_buffer_tc.len(), self.file_ts_guid.len(), self.file_tc_guid.len(), self.transactions.len());
+        SCLogDebug!("ssn2vec_map {} guid2name_map {} ssn2vecoffset_map {} ssn2tree_map {} ssnguid2vec_map {} tcp_buffer_ts {} tcp_buffer_tc {} file_ts_guid {} file_tc_guid {} transactions {}", self.ssn2vec_map.len(), self.guid2name_map.len(), self.ssn2vecoffset_map.len(), self.ssn2tree_map.len(), self.ssnguid2vec_map.len(), self.tcp_buffer_ts.len(), self.tcp_buffer_tc.len(), self.file_ts_guid.len(), self.file_tc_guid.len(), self.transactions.len());
     }
 }