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

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

Conversation

@Noorama
Copy link
Copy Markdown
Contributor

@Noorama Noorama commented May 20, 2021

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
Member

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
Member

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?

Copy link
Copy Markdown
Contributor

@andriichumak andriichumak May 31, 2021

Choose a reason for hiding this comment

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

I agree

@polomsky polomsky force-pushed the master branch 4 times, most recently from a7cd28b to ebd5e39 Compare March 6, 2024 20:41
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