Enable mongoc trace log

For now it gets filtered via the log crate infrastructure if desired,
in the 1.2 branch we'll only enable this when needed.
pull/4/head
Thijs Cadier 9 years ago
parent eb1888b00c
commit dcf7db62a3

@ -51,6 +51,7 @@ fn main() {
command.arg("--with-libbson=bundled"); command.arg("--with-libbson=bundled");
command.arg("--with-pic=yes"); command.arg("--with-pic=yes");
command.arg(format!("--prefix={}", &out_dir)); command.arg(format!("--prefix={}", &out_dir));
command.env("CFLAGS", "-DMONGOC_TRACE");
command.current_dir(&driver_src_path); command.current_dir(&driver_src_path);
// Enable debug symbols if configured for this profile // Enable debug symbols if configured for this profile
@ -66,6 +67,7 @@ fn main() {
assert!(command.status().unwrap().success()); assert!(command.status().unwrap().success());
assert!(Command::new("make"). assert!(Command::new("make").
current_dir(&driver_src_path). current_dir(&driver_src_path).
env("CFLAGS", "-DMONGOC_TRACE").
status(). status().
unwrap(). unwrap().
success()); success());

Loading…
Cancel
Save