message: Now android logger reads environment variable to set the logging level
diff: @@ -61,12 +61,22 @@ impl LoggerUtils {
  // Logging of panics is essential for android. As android does not log to stdout for native code
  log_panics::init();
  if cfg!(target_os = "android") {
  - // TODO: Set logging to off when deploying production android app.
  #[cfg(target_os = "android")]
  - android_logger::init_once(
  - Filter::default().with_min_level(Level::Trace)
  - );
  - trace!("logging enabled for android");
  + let log_filter = match env::var("RUST_LOG") {
  + Ok(val) => match val.to_lowercase().as_ref(){
  + "error" => Filter::default().with_min_level(log::Level::Error),
  + "warn" => Filter::default().with_min_level(log::Level::Warn),
  + "info" => Filter::default().with_min_level(log::Level::Info),
  + "debug" => Filter::default().with_min_level(log::Level::Debug),
  + "trace" => Filter::default().with_min_level(log::Level::Trace),
  + _ => Filter::default().with_min_level(log::Level::Error),
  + },
  + Err(..) => Filter::default().with_min_level(log::Level::Error)
  + };
  +
  + #[cfg(target_os = "android")]
  + android_logger::init_once(log_filter);
  + info!("Logging for Android");
  } else {
  match settings::get_config_value(settings::CONFIG_LOG_CONFIG) {
  Err(_) => {/* NO-OP - no logging configured */},
  