Skip to content

Commit

Permalink
Hide some debug printers behind the -verbose option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drup committed Jan 1, 2017
1 parent 1dc42fe commit f6cbe4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver/libcompile.ml
Expand Up @@ -134,7 +134,7 @@ let eliom_wrap ~frontend ~client ~server info =
in
let backend _info (ty,_) =
let {Eliom_emit. client = c ; server = s } = Eliom_emit.untype ty in
print c info ".client" ; print s info ".server" ;
if !Clflags.verbose then (print c info ".client" ; print s info ".server") ;
server s ;
client c ;
in
Expand Down
2 changes: 1 addition & 1 deletion typing/ident.ml
Expand Up @@ -149,7 +149,7 @@ let same i1 i2 =
(* Emit a warning if same but not equal.
This means we are comparing the same ident across different sides.
*)
begin if b && i1 <> i2 then
begin if b && !Clflags.verbose && i1 <> i2 then
Format.eprintf "Warning: Ident.same on different sides in %a scope: %a %a@."
Eliom_base.pp (Eliom_base.get_side ())
print i1 print i2
Expand Down

0 comments on commit f6cbe4e

Please sign in to comment.