[tbb-commits] [tor-launcher/master] Bug 32164: Now trimming each received log line from tor

gk at torproject.org gk at torproject.org
Tue Oct 22 06:19:48 UTC 2019


commit dd8147ceed102f93f246e67c91dcc36139451c8b
Author: Richard Pospesel <richard at torproject.org>
Date:   Mon Oct 21 14:47:40 2019 -0700

    Bug 32164: Now trimming each received log line from tor
---
 src/components/tl-protocol.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/tl-protocol.js b/src/components/tl-protocol.js
index a5fd1d9..d6df319 100644
--- a/src/components/tl-protocol.js
+++ b/src/components/tl-protocol.js
@@ -1487,7 +1487,7 @@ TorProtocolService.prototype =
     if ((idx > 0))
     {
       let eventType = s.substring(0, idx);
-      let msg = s.substr(idx + 1);
+      let msg = s.substr(idx + 1).trim();
       switch (eventType)
       {
         case "WARN":



More information about the tbb-commits mailing list