Skip to content

Commit

Permalink
Fix #55
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Dec 4, 2014
1 parent ad7d15a commit 4a25ccb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/commands/tail.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var fs = require('fs')
var chalk = require('chalk')
var path = require('path')
var pathToHost = require('../utils/path-to-host')
var config = require('../../config.js')


Expand Down Expand Up @@ -114,12 +115,11 @@ function tailAllLogFiles()


module.exports = function(args) {
var host = args[0] || path.basename(process.cwd())
var logFile = config.logsDir + '/' + host + '.log'
var host = args[0] || pathToHost(process.cwd())
var logFile = config.logsDir + '/' + host + '.log'

if (host == 'all')
tailAllLogFiles()
else
tailFile(logFile, '')
}

0 comments on commit 4a25ccb

Please sign in to comment.