From 31dfd81ccae34731224a74832aaf327329423e0b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 5 Nov 2018 14:36:22 +0100 Subject: Send debug output to stderr instead of stdout --- askama_derive/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_derive/src/lib.rs') diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 69cd686..f578d80 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -64,12 +64,12 @@ fn build_template(ast: &syn::DeriveInput) -> String { }; if input.print == Print::Ast || input.print == Print::All { - println!("{:?}", parsed[&input.path]); + eprintln!("{:?}", parsed[&input.path]); } let code = generator::generate(&input, &contexts, &heritage); if input.print == Print::Code || input.print == Print::All { - println!("{}", code); + eprintln!("{}", code); } code } -- cgit