@@ -5,6 +5,7 @@ import {ListWrapper, isListLikeIterable} from 'angular2/src/core/facade/collecti
55class  _ArrayLogger  { 
66 res : any [ ]  =  [ ] ; 
77 log ( s : any ) : void   {  this . res . push ( s ) ;  } 
8+  logError ( s : any ) : void   {  this . res . push ( s ) ;  } 
89 logGroup ( s : any ) : void   {  this . res . push ( s ) ;  } 
910 logGroupEnd ( ) { } ; 
1011} 
@@ -49,26 +50,26 @@ export class ExceptionHandler {
4950 this . logger . logGroup ( `EXCEPTION: ${ exception }  ` ) ; 
5051
5152 if  ( isPresent ( stackTrace )  &&  isBlank ( originalStack ) )  { 
52-  this . logger . log ( "STACKTRACE:" ) ; 
53-  this . logger . log ( this . _longStackTrace ( stackTrace ) ) ; 
53+  this . logger . logError ( "STACKTRACE:" ) ; 
54+  this . logger . logError ( this . _longStackTrace ( stackTrace ) ) ; 
5455 } 
5556
5657 if  ( isPresent ( reason ) )  { 
57-  this . logger . log ( `REASON: ${ reason }  ` ) ; 
58+  this . logger . logError ( `REASON: ${ reason }  ` ) ; 
5859 } 
5960
6061 if  ( isPresent ( originalException ) )  { 
61-  this . logger . log ( `ORIGINAL EXCEPTION: ${ originalException }  ` ) ; 
62+  this . logger . logError ( `ORIGINAL EXCEPTION: ${ originalException }  ` ) ; 
6263 } 
6364
6465 if  ( isPresent ( originalStack ) )  { 
65-  this . logger . log ( "ORIGINAL STACKTRACE:" ) ; 
66-  this . logger . log ( this . _longStackTrace ( originalStack ) ) ; 
66+  this . logger . logError ( "ORIGINAL STACKTRACE:" ) ; 
67+  this . logger . logError ( this . _longStackTrace ( originalStack ) ) ; 
6768 } 
6869
6970 if  ( isPresent ( context ) )  { 
70-  this . logger . log ( "ERROR CONTEXT:" ) ; 
71-  this . logger . log ( context ) ; 
71+  this . logger . logError ( "ERROR CONTEXT:" ) ; 
72+  this . logger . logError ( context ) ; 
7273 } 
7374
7475 this . logger . logGroupEnd ( ) ; 
0 commit comments