Skip to content

Commit

Permalink
fix(log): check environment if instance is not running
Browse files Browse the repository at this point in the history
no issue
- this ensures `ghost log` inside a non-running dev install doesn't break
  • Loading branch information
acburdine committed Jul 21, 2017
1 parent 2111ffe commit bc845de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/commands/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class LogCommand extends Command {

if (instance.running) {
instance.loadRunningEnvironment();
} else {
instance.checkEnvironment();
}

// Check if logging file transport is set in config
Expand Down

0 comments on commit bc845de

Please sign in to comment.