Skip to content

Hotfix/SUIT-16525-additional-log-options - #368

Open
Noorama wants to merge 6 commits into
masterfrom
hotfix/SUIT-16525-additional-log-options
Open

Noorama wants to merge 6 commits into
masterfrom
hotfix/SUIT-16525-additional-log-options

Conversation

@Noorama

@Noorama Noorama commented May 20, 2021

Copy link
Copy Markdown
Contributor

No description provided.

@Noorama
Noorama requested review from JeKachan and andriichumak May 20, 2021 14:37
Comment thread lib/api/webSockets.js Outdated
) {
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};

Copy link
Copy Markdown
Contributor

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 {}

Comment thread lib/api/webSockets.js Outdated
const responseBody = logItem.response && logItem.response.responseBody;

if (config.logLevel === logLevels.debug) {
if (config.networkLogs === logLevels.debug || config.logLevel === logLevels.debug) {

Copy link
Copy Markdown
Contributor

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?

@andriichumak andriichumak May 31, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants