-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
chore(ocp)!: Drop \OCP\Util::writeLog #38548
Conversation
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 nice one less way to write logs :)
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.
Approve (this has been logged).
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.
🧹
721f9ee
to
33f8c86
Compare
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'); |
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->logger is also available ;)
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.
🥲
33f8c86
to
b915825
Compare
b915825
to
d995f11
Compare
d995f11
to
46cfd66
Compare
46cfd66
to
0dd616f
Compare
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
64318fe
to
e2faf6d
Compare
Superseded by #40565 |
Summary
The method was deprecated in Nextcloud 13, released 2018-02-06.
TODO
logger(...)
https://docs.nextcloud.com/server/27/developer_manual/basics/logging.html#loggingChecklist