# HG changeset patch # User Jiri Vanek # Date 1550500639 -3600 # Node ID f3b0e27f23a959492a1a44bb437e959877411380 # Parent bfafe88b8719d22be7b8e1b0bf49f93779ae8d08 * rust-launcher/src/log_helper.rs: deployment.log.stdstreams is now honored diff -r bfafe88b8719 -r f3b0e27f23a9 ChangeLog --- a/ChangeLog Mon Feb 18 15:03:46 2019 +0100 +++ b/ChangeLog Mon Feb 18 15:37:19 2019 +0100 @@ -1,3 +1,7 @@ +2019-02-18 Jiri Vanek + + * rust-launcher/src/log_helper.rs: deployment.log.stdstreams is now honored + 2019-02-18 Jiri Vanek For linux, implemented and used system logging diff -r bfafe88b8719 -r f3b0e27f23a9 rust-launcher/src/log_helper.rs --- a/rust-launcher/src/log_helper.rs Mon Feb 18 15:03:46 2019 +0100 +++ b/rust-launcher/src/log_helper.rs Mon Feb 18 15:37:19 2019 +0100 @@ -15,17 +15,23 @@ //2 debug only pub fn log_impl(level: i32, os: &os_access::Os, s: &str) { if level == 0 { - println!("{}", s); + if os.advanced_logging().log_to_stdstreams { + println!("{}", s); + } if os.advanced_logging().log_to_system { let mut info2 = String::from("IcedTea-Web nativerustlauncher error. Consult - https://icedtea.classpath.org/wiki/IcedTea-Web\n"); info2.push_str(s); os.system_log(&info2); } } else if level == 1 { - println!("{}", s); + if os.advanced_logging().log_to_stdstreams { + println!("{}", s); + } } else if level == 2 { if os.is_verbose() { - println!("{}", s); + if os.advanced_logging().log_to_stdstreams { + println!("{}", s); + } } } if os.advanced_logging().log_to_file {