Skip to content

Less deprecated calls to OCP\Util::writeLog - #9255

Merged
rullzer merged 1 commit into
masterfrom
less-deprecated-calls
Apr 23, 2018
Merged

Less deprecated calls to OCP\Util::writeLog#9255
rullzer merged 1 commit into
masterfrom
less-deprecated-calls

Conversation

@MorrisJobke

Copy link
Copy Markdown
Member

Ref #8375

@MorrisJobkeMorrisJobke added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 labels Apr 20, 2018
@MorrisJobkeMorrisJobke added this to the Nextcloud 14 milestone Apr 20, 2018

// 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();

@nickvergessennickvergessenApr 20, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No DI?

Copy link
Copy Markdown
MemberAuthor

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

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
MemberAuthor

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 🙈

Copy link
Copy Markdown
MemberAuthor

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>
@rullzer
rullzerforce-pushed the less-deprecated-calls branch from b38b057 to dd34cb7CompareApril 22, 2018 18:42
@codecov

codecovBot commented Apr 22, 2018

Copy link
Copy Markdown

Codecov Report

Merging #9255 into master will increase coverage by 0.04%.
The diff coverage is 50%.

@@ 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
Impacted FilesCoverage ΔComplexity Δ
cron.php0% <0%> (ø)0 <0> (ø)⬇️
apps/files_sharing/lib/ShareBackend/File.php28.45% <0%> (ø)35 <0> (ø)⬇️
...les_external/lib/Service/LegacyStoragesService.php0% <0%> (ø)24 <0> (ø)⬇️
apps/files_sharing/lib/SharedMount.php79.54% <0%> (+3.45%)27 <0> (ø)⬇️
apps/dav/lib/Connector/Sabre/File.php73.2% <100%> (ø)103 <0> (ø)⬇️
...haring/lib/Controller/RequestHandlerController.php30.47% <100%> (+0.22%)82 <0> (ø)⬇️
apps/files_trashbin/lib/Trashbin.php72.46% <40%> (ø)136 <0> (ø)⬇️
apps/files_versions/lib/Storage.php66.06% <60%> (+0.08%)103 <0> (ø)⬇️
lib/private/Comments/Manager.php96.47% <0%> (+0.62%)89% <0%> (+9%)⬆️
lib/private/DB/ConnectionFactory.php67.07% <0%> (+8.09%)24% <0%> (+1%)⬆️

@rullzer
rullzer merged commit a80fcf1 into masterApr 23, 2018
@rullzer
rullzer deleted the less-deprecated-calls branch April 23, 2018 06:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewstechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@MorrisJobke@rullzer@nickvergessen