Skip to content

Commit bc845de

Browse files
committed
fix(log): check environment if instance is not running
no issue - this ensures `ghost log` inside a non-running dev install doesn't break
1 parent 2111ffe commit bc845de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/commands/log.js

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class LogCommand extends Command {
2424

2525
if (instance.running) {
2626
instance.loadRunningEnvironment();
27+
} else {
28+
instance.checkEnvironment();
2729
}
2830

2931
// Check if logging file transport is set in config

0 commit comments

Comments
 (0)