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

Commit a0532fc8 authored by Chris Manton's avatar Chris Manton
Browse files

dumpsys: Move log message to when snooz is dumped

Bug: 343495637
Test: m .
Flag: EXEMPT, Logging Change
Change-Id: I9f88837f6659e5c9486e88f9e732ac3abad91fd7
parent 30ab203a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1277,6 +1277,7 @@ void SnoopLogger::DumpSnoozLogToFile(const std::vector<std::string>& data) const
    return;
  }

  log::debug("Dumping btsnooz log data to {}", snooz_log_path_);
  auto last_file_path = get_last_log_path(snooz_log_path_);

  if (os::FileExists(snooz_log_path_)) {
@@ -1372,7 +1373,6 @@ void SnoopLogger::Stop() {

DumpsysDataFinisher SnoopLogger::GetDumpsysData(
    flatbuffers::FlatBufferBuilder* /* builder */) const {
  log::debug("Dumping btsnooz log data to {}", snooz_log_path_);
  DumpSnoozLogToFile(btsnooz_buffer_.Pull());
  return EmptyDumpsysDataFinisher;
}