aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-11-05 14:36:22 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-11-05 14:36:22 +0100
commit31dfd81ccae34731224a74832aaf327329423e0b (patch)
treef3403a5cf7f2da5bb23a0bfe0baed6a67719981d /askama_derive/src/lib.rs
parent6c442903c6b9656318b13aba0875d204b7427497 (diff)
downloadaskama-31dfd81ccae34731224a74832aaf327329423e0b.tar.gz
askama-31dfd81ccae34731224a74832aaf327329423e0b.tar.bz2
askama-31dfd81ccae34731224a74832aaf327329423e0b.zip
Send debug output to stderr instead of stdout
Diffstat (limited to '')
-rw-r--r--askama_derive/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
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
}