-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix/SUIT-16525-additional-log-options #368
base: master
Are you sure you want to change the base?
Conversation
…hen logLevel: silent was resolved
…-js-api into hotfix/SUIT-16525-additional-log-options
lib/api/webSockets.js
Outdated
@@ -56,7 +56,8 @@ const webSocketsFactory = (self) => { | |||
content.type === 'console' && | |||
content.data[0] !== 'SUITESTIFY: domainMapping' | |||
) { | |||
const {args: data, method: level} = logger.getAppOutput(content.subtype, content.data); | |||
const {args: data, method: level} = logger.getAppOutput(content.subtype, content.data) | |||
|| {data: undefined, level: undefined}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think u can use here empty object {}
lib/api/webSockets.js
Outdated
@@ -76,7 +77,7 @@ const webSocketsFactory = (self) => { | |||
const requestBody = logItem.request && logItem.request.requestBody; | |||
const responseBody = logItem.response && logItem.response.responseBody; | |||
|
|||
if (config.logLevel === logLevels.debug) { | |||
if (config.networkLogs === logLevels.debug || config.logLevel === logLevels.debug) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that specific log level should override general setting (have more weight). For example if logLevel
defined debug
, but networkLogs
is not debugg
(hidden for example) - network logs should not be displayed
@andriichumak what is preferable behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
… Minnor refactoring. Conditions improvement
a7cd28b
to
ebd5e39
Compare
No description provided.