summaryrefslogtreecommitdiff
path: root/src/util.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.ml')
-rw-r--r--src/util.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.ml b/src/util.ml
index 471b0c4c..b54c13d4 100644
--- a/src/util.ml
+++ b/src/util.ml
@@ -442,3 +442,6 @@ let warn str =
if !opt_warnings then
prerr_endline (("Warning" |> yellow |> clear) ^ ": " ^ str)
else ()
+
+let log_line str line msg =
+ "\n[" ^ (str ^ ":" ^ string_of_int line |> blue |> clear) ^ "] " ^ msg