Skip to content

Commit a98f2f3

Browse files
committed
Fix issue with logging not in debug mode.
Fixes #574
1 parent 877f874 commit a98f2f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

analysis/reanalyze/src/Paths.ml

+3-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ let readSourceDirs ~configSources =
181181
else readDirs json
182182
| None -> ()
183183
else (
184-
Log_.item "Warning: can't find source dirs: %s\n" sourceDirs;
185-
Log_.item "Types for cross-references will not be found by genType.\n";
184+
if !Cli.debug then (
185+
Log_.item "Warning: can't find source dirs: %s\n" sourceDirs;
186+
Log_.item "Types for cross-references will not be found.\n");
186187
dirs := readDirsFromConfig ~configSources);
187188
!dirs

0 commit comments

Comments
 (0)