Skip to content

Commit 2578d07

Browse files
committed
Rename: log verbose.
1 parent e49c924 commit 2578d07

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

analysis/src/Commands.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,12 @@ let test ~path =
297297
if mlen >= 3 then (
298298
(match String.sub rest 0 3 with
299299
| "deb" ->
300-
Log.spamError := true;
300+
Log.verbose := true;
301301
print_endline
302302
("Debug " ^ path ^ " " ^ string_of_int line ^ ":"
303303
^ string_of_int col);
304304
let res = definition ~path ~line ~col in
305-
Log.spamError := false;
305+
Log.verbose := false;
306306
res
307307
| "def" ->
308308
print_endline

analysis/src/Log.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
let spamError = ref false
1+
let verbose = ref false
22

3-
let log msg = if !spamError then print_endline msg
3+
let log msg = if !verbose then print_endline msg

analysis/src/References.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let lineColToCmtLoc ~line ~col = (line + 1, col)
2222
let getLocItem ~full ~line ~col =
2323
let pos = lineColToCmtLoc ~line ~col in
2424
let locItems = locItemsForPos ~extra:full.extra pos in
25-
if !Log.spamError then
25+
if !Log.verbose then
2626
print_endline
2727
("locItems:\n "
2828
^ (locItems |> List.map locItemToString |> String.concat "\n "));

0 commit comments

Comments
 (0)