Skip to content

Commit

Permalink
[sqlite] log db attach in verbose mode only
Browse files Browse the repository at this point in the history
Summary: Current log level is too spammy.

Reviewed By: ezgicicek

Differential Revision: D49866071

fbshipit-source-id: 4fe8ebba8ae590dc2f118625be81a2fbe4afb9cd
  • Loading branch information
ngorogiannis authored and facebook-github-bot committed Oct 3, 2023
1 parent 3cf8b32 commit 8ae4497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infer/src/base/SqliteUtils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ let with_attached_db ~db_file ~db_name ?(immutable = false) ~f db =
(if immutable then "?immutable=1" else "")
db_name
in
L.debug Capture Quiet "Attach: %s@\n" attach_stmt ;
L.debug Capture Verbose "Attach: %s@\n" attach_stmt ;
exec db ~stmt:attach_stmt ~log:(Printf.sprintf "attaching database '%s'" db_file) ;
let result = f () in
exec db ~stmt:("DETACH " ^ db_name) ~log:(Printf.sprintf "detaching database '%s'" db_file) ;
Expand Down

0 comments on commit 8ae4497

Please sign in to comment.