]> matita.cs.unibo.it Git - helm.git/commitdiff
The fact that an object is trusted is now logged.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 25 Oct 2002 15:59:37 +0000 (15:59 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 25 Oct 2002 15:59:37 +0000 (15:59 +0000)
helm/ocaml/cic_proof_checking/cicEnvironment.ml
helm/ocaml/cic_proof_checking/logger.ml
helm/ocaml/cic_proof_checking/logger.mli

index 7ed9572717e044d12c5af25da2e60eff101e6048..d48ff09bdaa5af533b192c1d304db212d948fc45 100644 (file)
@@ -188,7 +188,7 @@ let is_type_checked uri =
     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)
index efae1b19564c79ac5538e6a9f6b44e89547a566f..2fe8ac0a1bf93646252d383e3200b45a32be0942 100644 (file)
@@ -26,6 +26,7 @@
 type msg =
  [ `Start_type_checking of UriManager.uri
  | `Type_checking_completed of UriManager.uri
+ | `Trusting of UriManager.uri
  ]
 ;;
 
@@ -52,6 +53,13 @@ let log_to_html ~print_and_flush =
           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) -> ())
index c5e74ec9069af1d22c39996b409b2909d64be792..781abdef6e9a7b6275e14935df9336ddb3cf0a31 100644 (file)
@@ -26,6 +26,7 @@
 type msg =
  [ `Start_type_checking of UriManager.uri
  | `Type_checking_completed of UriManager.uri
+ | `Trusting of UriManager.uri
  ]
 ;;