Commit 0cc2f849 authored by henry's avatar henry
Browse files

fixup! TB 40933: Add tor-launcher functionality

TB 43328: Make getLog return the LogEntry data.
parent 8e663084
Loading
Loading
Loading
Loading
+3 −5
Changes for toolkit/components/tor-launcher/TorProvider.sys.mjs: 3 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -512,14 +512,12 @@ export class TorProvider {
  }

  /**
   * Returns captured log message as a text string (one message per line).
   * Returns captured log messages.
   *
   * @returns {string} The logs we collected from the tor daemon so far
   * @returns {LogEntry[]} The logs we collected from the tor daemon so far.
   */
  getLog() {
    return this.#logs
      .map(logObj => `${logObj.timestamp} [${logObj.type}] ${logObj.msg}`)
      .join(TorLauncherUtil.isWindows ? "\r\n" : "\n");
    return structuredClone(this.#logs);
  }

  /**