Skip to content

Commit

Permalink
Merge pull request socketio#570 from 3rd-Eden/logger
Browse files Browse the repository at this point in the history
Use tty to detect if we should add colors or not by default.
  • Loading branch information
rauchg committed Nov 16, 2011
2 parents 7b6c850 + d9049f6 commit dfb8521
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager.js
Expand Up @@ -10,6 +10,7 @@

var fs = require('fs')
, url = require('url')
, tty = require('tty')
, util = require('./util')
, store = require('./store')
, client = require('socket.io-client')
Expand Down Expand Up @@ -69,7 +70,7 @@ function Manager (server, options) {
, authorization: false
, blacklist: ['disconnect']
, 'log level': 3
, 'log colors': true
, 'log colors': tty.isatty(process.stdout.fd)
, 'close timeout': 25
, 'heartbeat timeout': 15
, 'heartbeat interval': 20
Expand Down

0 comments on commit dfb8521

Please sign in to comment.