-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Enable SMB logging for the Community Edition #30185
Conversation
I'm fine with this if you guys are too @jvillafanez @butonic |
9be76d8
to
74cedd3
Compare
Codecov Report
@@ Coverage Diff @@
## master #30185 +/- ##
============================================
- Coverage 58.24% 58.23% -0.01%
Complexity 18548 18548
============================================
Files 1092 1092
Lines 63729 63729
============================================
- Hits 37116 37115 -1
- Misses 26613 26614 +1
Continue to review full report at Codecov.
|
74cedd3
to
63988e3
Compare
I'd just rename the configuration option: less changes => less problems. Having both seems useless to me. |
* @param string $message | ||
* @param int $level | ||
* Return either 'wnd' or 'smb' if the related config values has been enabled | ||
* Return a an existing string if set by the caller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/a an existing/an existing
and this text describing the returns could go in the return PHPdoc line below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, will correct this. Thought that a return without an preceeding @ is ok to phpdoc not to parse it as a keyword.
@jvillafanez The intention was to not mix up Enterprise and Community parameters and keep this clearly seperated... |
63988e3
to
5836817
Compare
That part of the code is already complex enough to add even more complexity, that's why if the easiest solution (renaming the variable) works, then let's go with it. Renaming the variable doesn't have any impact in any of both apps (SMB and WND). The fact that "wnd" is there is because of a slip when this was added here, and kind of laziness to not change it afterwards (me included). There is no need to keep it if we're going to change it. If WND wanted to add special logs or anything, it has to do it on its own app anyway. We'll have to update the documentation accordingly, but other than that I don't think we need any degree of compatibility here: that switch isn't intended to be actively used so it shouldn't matter if we change the switch. |
Ok, I agree with @jvillafanez. This setting should anyway not be used in production as it would slow down and fill log files very quickly, so I don't expect anyone to have this. Just in case, we can still mention it in the next release notes. |
Just to have the tasks clear:
Let me know if this is correct or if I missed something. |
Yes, that's it |
5836817
to
5aec95e
Compare
If this gets merged, I will do a backport to stable10 if wanted. |
Ready to merge? |
@PVince81 |
@mmattel yes, please go ahead. Thanks |
Enable SMB logging for the Community Edition
Backport stable10 #30244 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
New config.php parameter
smb.logging.enable
to enable SMB logging.A parameter for this already exists for the Enterprise edition
wnd.logging.enable
, but to seperate this properly, a community parameter is needed. The code for this already existed, it was just about to add the new parameter additionally and document it.Related Issue
Motivation and Context
Discussion with @PVince81
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
owncloud-archive/documentation#3715