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

chore(ocp)!: Drop \OCP\Util::writeLog #38548

Closed
wants to merge 3 commits into from

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented May 31, 2023

Summary

The method was deprecated in Nextcloud 13, released 2018-02-06.

TODO

Checklist

Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

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

Oh nice one less way to write logs :)

Copy link
Member

@solracsf solracsf left a comment

Choose a reason for hiding this comment

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

Approve (this has been logged).

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish pending documentation This pull request needs an associated documentation update and removed 3. to review Waiting for reviews labels May 31, 2023
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

🧹

@ChristophWurst
Copy link
Member Author

Fixed unused imports. Should be fine now.

@@ -529,7 +530,7 @@ public function tagAs($objid, $tag) {
if (is_string($tag) && !is_numeric($tag)) {
$tag = trim($tag);
if ($tag === '') {
\OCP\Util::writeLog('core', __METHOD__.', Cannot add an empty tag', ILogger::DEBUG);
logger('core')->debug(__METHOD__.', Cannot add an empty tag');
Copy link
Contributor

Choose a reason for hiding this comment

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

$this->logger is also available ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

🥲

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
@skjnldsv skjnldsv added 2. developing Work in progress and removed 4. to release Ready to be released and/or waiting for tests to finish labels Feb 23, 2024
@skjnldsv
Copy link
Member

Superseded by #40565

@skjnldsv skjnldsv closed this Feb 23, 2024
@skjnldsv skjnldsv deleted the chore/ocp/drop-until-writelog branch February 23, 2024 14:12
@skjnldsv skjnldsv removed this from the Nextcloud 29 milestone Feb 23, 2024
@ChristophWurst ChristophWurst removed the pending documentation This pull request needs an associated documentation update label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ☑️ Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants