diff --git a/compiler/crates/schema-validate/Cargo.toml b/compiler/crates/schema-validate/Cargo.toml index a0a8b29627f8f..0c46cf97d310f 100644 --- a/compiler/crates/schema-validate/Cargo.toml +++ b/compiler/crates/schema-validate/Cargo.toml @@ -20,6 +20,7 @@ common = { path = "../common" } fnv = "1.0" intern = { path = "../intern" } lazy_static = "1.4" +log = { version = "0.4.17", features = ["kv_unstable", "kv_unstable_std"] } rayon = "1.2" regex = "1.6.0" schema = { path = "../schema" } diff --git a/compiler/crates/schema-validate/src/lib.rs b/compiler/crates/schema-validate/src/lib.rs index ab8581fa95ecb..540473cf2c01f 100644 --- a/compiler/crates/schema-validate/src/lib.rs +++ b/compiler/crates/schema-validate/src/lib.rs @@ -21,6 +21,7 @@ use intern::string_key::Intern; use intern::string_key::StringKey; use intern::Lookup; use lazy_static::lazy_static; +use log::info; use rayon::prelude::*; use regex::Regex; use schema::EnumID; @@ -97,8 +98,8 @@ impl<'schema> ValidationContext<'schema> { self.validate_root_types(); self.validate_directives(); self.validate_types(); - println!("Validated Schema in {}ms", now.elapsed().as_millis()); - println!( + info!("Validated Schema in {}ms", now.elapsed().as_millis()); + info!( "Found {} validation errors", self.errors.lock().unwrap().len() )