File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ If you only have a single project, you can run:
1313sfcc 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
1919sfcc log < client> < instance>
@@ -38,7 +38,7 @@ Latest | `--latest` | `false` | Show Latest Logs Only ( default is to use ALL
3838Get current list of log types:
3939
4040``` bash
41- sfcc log list
41+ sfcc log -- list
4242```
4343
4444Watch latest ` customerror ` logs that contain the text ` PipelineCallServlet ` :
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ const truncate = require('lodash/truncate')
77const read = require ( './read' )
88
99module . 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 )
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ const truncate = require('lodash/truncate')
77const read = require ( './read' )
88
99module . 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 )
You can’t perform that action at this time.
0 commit comments