Skip to content

Commit a7b145d

Browse files
m1gacb1kenobi
andauthored
feat(android): indent log correctly (#14030)
Co-authored-by: Chris Barber <[email protected]>
1 parent 20735d4 commit a7b145d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/cli/hooks/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ exports.init = function (logger, config, cli) {
254254

255255
// start of a new log message
256256
if (device.appPidRegExp.test(line)) {
257-
line = line.trim().replace(device.appPidRegExp, ':');
257+
line = line.replace(/^ {1,2}/, '').replace(device.appPidRegExp, ':');
258258
logLevel = line.charAt(0).toLowerCase();
259259
if (tiapiRegExp.test(line)) {
260-
line = line.replace(tiapiRegExp, '').trim();
260+
line = line.replace(tiapiRegExp, '').replace(/^ {1,2}/, '');
261261
} else {
262262
line = line.replace(/^\w\/(\w+)\s*:/g, '$1:').grey;
263263
}

0 commit comments

Comments
 (0)