Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0f51122 authored by Hui Peng's avatar Hui Peng
Browse files

[redact_log] enable redaction on debug builds by default

Test: refactoring CL. Existing unit tests still pass
Bug: 174487588
Tag: #security
Change-Id: Iee8ea9364d230e6121d3f2600ce9a6169f73a904
parent e4cbfd22
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@
#include "os/logging/log_redaction.h"

#include "common/init_flags.h"
#include "os/system_properties.h"

namespace bluetooth {
namespace os {
@@ -27,7 +26,7 @@ namespace os {
using bluetooth::common::init_flags::redact_log_is_enabled;

bool should_log_be_redacted() {
  return !GetSystemPropertyBool(DEBUGGABLE_SYS_PROP_NAME, false) && redact_log_is_enabled();
  return redact_log_is_enabled();
}

}  // namespace os