Skip to content

Commit 7e1fe09

Browse files
Quick Fix Bug and Docs
1 parent 37cc0d5 commit 7e1fe09

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/cmd-log.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you only have a single project, you can run:
1313
sfcc log
1414
```
1515

16-
If needed to setup multiple clients, or multiple instances for the same client, you will need to specify what to watch:
16+
If needed to setup multiple clients, or multiple instances for the same client, you will need to specify what to use:
1717

1818
```bash
1919
sfcc log <client> <instance>
@@ -38,7 +38,7 @@ Latest | `--latest` | `false` | Show Latest Logs Only ( default is to use ALL
3838
Get current list of log types:
3939

4040
```bash
41-
sfcc log list
41+
sfcc log --list
4242
```
4343

4444
Watch latest `customerror` logs that contain the text `PipelineCallServlet`:

lib/search.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const truncate = require('lodash/truncate')
77
const read = require('./read')
88

99
module.exports = async (selected, groups, options) => {
10-
const including = options.include.length > 0 ? ` '${options.include.join(', ')}'` : ''
11-
const excluding = options.exclude.length > 0 ? ` '${options.exclude.join(', ')}'` : ''
12-
const filters = options.filter.length > 0 ? ` containing '${options.filter}'` : ''
10+
const including = options.include && options.include.length > 0 ? ` '${options.include.join(', ')}'` : ''
11+
const excluding = options.exclude && options.exclude.length > 0 ? ` '${options.exclude.join(', ')}'` : ''
12+
const filters = options.filter && options.filter.length > 0 ? ` containing '${options.filter}'` : ''
1313

1414
const text = `Searching${including}${excluding} Logs${filters} [Ctrl-C to Cancel]`
1515
const spinner = ora(text)

lib/tail.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const truncate = require('lodash/truncate')
77
const read = require('./read')
88

99
module.exports = async (selected, logs, groups, options) => {
10-
const including = options.include.length > 0 ? ` '${options.include.join(', ')}'` : ''
11-
const excluding = options.exclude.length > 0 ? ` '${options.exclude.join(', ')}'` : ''
12-
const filters = options.filter.length > 0 ? ` containing '${options.filter}'` : ''
10+
const including = options.include && options.include.length > 0 ? ` '${options.include.join(', ')}'` : ''
11+
const excluding = options.exclude && options.exclude.length > 0 ? ` '${options.exclude.join(', ')}'` : ''
12+
const filters = options.filter && options.filter.length > 0 ? ` containing '${options.filter}'` : ''
1313

1414
const text = `Streaming${including}${excluding} Logs${filters} [Ctrl-C to Cancel]`
1515
const spinner = ora(text)

0 commit comments

Comments
 (0)