Cache.unchecked_to_frozen uri ;
if !trust_obj uri then
begin
-prerr_endline ("### " ^ UriManager.string_of_uri uri ^ " TRUSTED!!!") ;
+ Logger.log (`Trusting uri) ;
set_type_checking_info uri ;
trust_obj := always_trust ;
CheckedObj (Cache.find_cooked uri)
type msg =
[ `Start_type_checking of UriManager.uri
| `Type_checking_completed of UriManager.uri
+ | `Trusting of UriManager.uri
]
;;
string_of_float (float_of_int !indent *. 0.5) ^ "cm\">" ^
"Type-Checking of " ^ (U.string_of_uri uri) ^ " completed.</div>\n"
)
+ | `Trusting uri ->
+ print_and_flush (
+ mkindent () ^
+ "<div style=\"color: blue ; margin-left: " ^
+ string_of_float (float_of_int !indent *. 0.5) ^ "cm\">" ^
+ (U.string_of_uri uri) ^ " is trusted.</div>\n"
+ )
;;
let log_callback = ref (function (_:msg) -> ())