File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export class IOSLogFilter implements Mobile.IPlatformLogFilter {
10
10
// This: "May 24 15:54:52 Dragons-iPhone NativeScript250(NativeScript)[356] <Notice>: CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3477:36: ORIGINAL STACKTRACE:"
11
11
// Becomes: CONSOLE ERROR file:///app/tns_modules/@angular /core/bundles/core.umd.js:3477:36: ORIGINAL STACKTRACE:
12
12
protected infoFilterRegex = new RegExp (
13
- `^.*(?:<Notice>:|<Error>: |<Warning>:|\\(NativeScript\\)| ${ this . appOutputRegex . source } :){1}`
13
+ `^.*(?:<Notice>:|<Error>|<Warning>:|${ this . appOutputRegex . source } :) CONSOLE {1}`
14
14
) ;
15
15
16
16
private filterActive : boolean = true ;
@@ -67,11 +67,11 @@ export class IOSLogFilter implements Mobile.IPlatformLogFilter {
67
67
68
68
const filteredLineInfo = currentLine . match ( this . infoFilterRegex ) ;
69
69
if ( filteredLineInfo && filteredLineInfo . length > 0 ) {
70
- currentLine = currentLine . replace ( filteredLineInfo [ 0 ] , "" ) ;
70
+ output =
71
+ "CONSOLE " +
72
+ currentLine . replace ( filteredLineInfo [ 0 ] , "" ) . trim ( ) +
73
+ "\n" ;
71
74
}
72
-
73
- currentLine = currentLine . trim ( ) ;
74
- output += currentLine + "\n" ;
75
75
}
76
76
77
77
return output . length === 0 ? null : output ;
You can’t perform that action at this time.
0 commit comments