Skip to content

Commit

Permalink
add verbose debugging option
Browse files Browse the repository at this point in the history
chrisbutler committed Jan 12, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 938b5f1 commit 9b5c689
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -41,6 +41,12 @@ Use the `g` command to see a list of generators.
$ iron g
```

**Run Iron in verbose mode (extended logging)**

```
$ IRON_DEBUG=true iron
```

## Directory Structure
The application will have the following directory structure:

@@ -145,7 +151,7 @@ $ cd app/
$ meteor mongo
```

**NOTE**
**NOTE**

*Ideally running `iron mongo` in the project directory should work but it doesn't for some reason and is being tracked in issue #136*

5 changes: 5 additions & 0 deletions lib/tools/logging.js
Original file line number Diff line number Diff line change
@@ -19,6 +19,11 @@ module.exports = {
console.log(cli.red.bold.apply(this, arguments));
},

logDebug: function () {
if (process.env.IRON_DEBUG)
console.log(cli.magenta.apply(this, arguments));
},

logUsage: function () {
var header = cli.blackBright;

0 comments on commit 9b5c689

Please sign in to comment.