-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Less deprecated calls to OCP\Util::writeLog #9255
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
Conversation
|
|
||
| // FIXME this should be a method in the user management instead | ||
| \OCP\Util::writeLog('files_sharing', 'shareWith before, ' . $shareWith, \OCP\Util::DEBUG); | ||
| $logger = \OC::$server->getLogger(); |
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.
No DI?
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.
This is specified in the ->debug() call
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.
what? I mean require ILogger in the constructor instead of using global \OC::$server here
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.
Sure would make sense of course 🙈
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.
See #9269
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
b38b057 to
dd34cb7
Compare
Codecov Report
@@ Coverage Diff @@
## master #9255 +/- ##
============================================
+ Coverage 51.9% 51.95% +0.04%
- Complexity 25365 25375 +10
============================================
Files 1607 1607
Lines 95330 95393 +63
Branches 1394 1394
============================================
+ Hits 49482 49557 +75
+ Misses 45848 45836 -12
|
Ref #8375