File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 3
3
* Module dependencies.
4
4
*/
5
5
6
- var Log = require ( './lib/log' ) ;
7
-
8
- var log = new Log ( Log . INFO ) ;
6
+ var Log = require ( './lib/log' )
7
+ , log = new Log ( Log . INFO ) ;
9
8
10
9
log . debug ( 'preparing email' ) ;
11
10
log . info ( 'sending email' ) ;
12
- log . error ( 'failed to send email' ) ;
11
+ log . error ( 'failed to send email' ) ;
Original file line number Diff line number Diff line change @@ -99,13 +99,12 @@ Log.prototype = {
99
99
100
100
log : function ( levelStr , msg ) {
101
101
if ( exports [ levelStr ] <= this . level ) {
102
- this . stream . write ( [
103
- '[' + ( new Date ) . toUTCString ( ) + ']'
104
- , '-'
105
- , levelStr
106
- , '-'
107
- , msg
108
- ] . join ( ' ' ) + '\n' ) ;
102
+ this . stream . write (
103
+ '[' + new Date ( ) . toUTCString ( ) + ']'
104
+ + ' ' + levelStr
105
+ + ' ' + msg
106
+ + '\n'
107
+ ) ;
109
108
}
110
109
} ,
111
110
You can’t perform that action at this time.
0 commit comments