Skip to content

Conversation

@Noorama
Copy link
Contributor

@Noorama Noorama commented May 20, 2021

No description provided.

@Noorama Noorama requested review from JeKachan and andriichumak May 20, 2021 14:37
) {
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
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 {}

const responseBody = logItem.response && logItem.response.responseBody;

if (config.logLevel === logLevels.debug) {
if (config.networkLogs === logLevels.debug || config.logLevel === logLevels.debug) {
Copy link
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
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.

4 participants