Skip to content
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

Do not write /list messages to logs #2637

Merged
merged 1 commit into from
Jul 10, 2018
Merged

Do not write /list messages to logs #2637

merged 1 commit into from
Jul 10, 2018

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Jul 10, 2018

Noticed this while working on Vue, this is a temporary fix (hence why I'm not adding new types for it) as this isn't a problem in Vue branch (it doesn't use Msg at all).

@xPaw xPaw added the Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors. label Jul 10, 2018
@xPaw xPaw added this to the 3.0.0 milestone Jul 10, 2018
Copy link
Member

@AlMcKinlay AlMcKinlay left a comment

Choose a reason for hiding this comment

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

Couple of small points. Not bothered if they get dealt with just now or later, but they are things that should probably be done.

But yeah, I agree with not logging these.

@@ -46,6 +46,9 @@ class Msg {
this.type !== Msg.Type.ERROR &&
this.type !== Msg.Type.BANLIST &&
this.type !== Msg.Type.IGNORELIST &&
this.type !== "channel_list" &&
Copy link
Member

Choose a reason for hiding this comment

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

Why are these not in the enum? They probably should be.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's what I meant, these types are all gone in Vue which is why I didn't bother adding them to the enum.

Copy link
Member

Choose a reason for hiding this comment

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

Oh I missed that in your description. Ignore me. Alrighty.

@@ -46,6 +46,9 @@ class Msg {
this.type !== Msg.Type.ERROR &&
Copy link
Member

Choose a reason for hiding this comment

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

It would probably be nice to create an array of types that we don't log and switch the code to

return this.TYPES_NOT_TO_LOG.includes(this.type)

Might be nicer overall?

@xPaw xPaw merged commit 3bf2404 into master Jul 10, 2018
@xPaw xPaw deleted the xpaw/chan-list-log branch July 10, 2018 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants