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

Logging Event Types Inconsistent With Documentation (hardcoded to "snomask") #749

Closed
scub opened this issue Jan 24, 2014 · 2 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@scub
Copy link

scub commented Jan 24, 2014

Reproduction

The following directives when placed within inspircd's configuration should split client connect/disconnects into a secondary log.

E.g. https://github.com/inspircd/inspircd/blob/master/docs/conf/inspircd.conf.example#L835

<log type="USERS" level="default" target="/var/log/ircd/connection.log">
<log type="* -USERS -USERINPUT -USEROUTPUT" level="default" target="/var/log/ircd/inspircd.log">

Managed to trace the issue to the event type being hardcoded with the value of "snomask", within snomask.cpp for all effected types.
https://github.com/inspircd/inspircd/blob/master/src/snomasks.cpp#L130

It would appear that the scaffolding for this functionality was already put into place using the desc parameter passed to Snomask::Send(), but looking at the desc (event type) assigned to the individual snomasks there is still a disconnect between the documentation and the presented types.

Log Events Effected: USERS (CONNECT QUIT) KILL OPER XLINE

@attilamolnar
Copy link
Member

Thanks for the detailed report. An option to address this will be added to 2.0 and the new behavior will be made permanent in 2.2.

@attilamolnar attilamolnar modified the milestones: v2.2, v2.0.16 Mar 17, 2014
@SadieCat SadieCat added enhancement New feature or request minor labels Jul 20, 2018
@SadieCat
Copy link
Member

Fixed in 8faa6ac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants