File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ impl<'p> LibpgQueryNodeParser<'p> {
6262 } 
6363
6464 pub  fn  parse ( & mut  self )  { 
65-  dbg ! ( & self . node_graph) ; 
65+  if  log_enabled ! ( log:: Level :: Debug )  { 
66+  dbg ! ( & self . node_graph) ; 
67+  } 
6668 while  self . parser . pos  < self . token_range . end  { 
6769 debug ! ( "current node: {:#?}" ,  self . current_node) ; 
6870 debug ! ( "current token: {:#?}" ,  self . current_token( ) ) ; 
Original file line number Diff line number Diff line change 11use  std:: fs; 
22mod  common; 
3- use  log:: debug; 
3+ use  log:: { debug,  info } ; 
44use  parser:: parse_source; 
55
66const  VALID_STATEMENTS_PATH :  & str  = "tests/data/statements/valid/" ; 
@@ -32,6 +32,13 @@ fn valid_statements() {
3232 test_name, 
3333 result. unwrap_err( ) 
3434 ) ; 
35+  }  else  { 
36+  info ! ( 
37+  "Successfully parsed statement {}\n '{}'\n {:#?}" , 
38+  test_name, 
39+  contents, 
40+  result. unwrap( ) . cst
41+  ) ; 
3542 } 
3643 } ) ; 
3744} 
                         You can’t perform that action at this time. 
           
                  
0 commit comments