-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Deprecated event type for OCP\IDBConnection::*
#24380
Comments
That's on purpose right? (#18966 (comment)) |
yes |
the updater switches to debug level logs, hence this shows. |
Log level for |
I guess we are not done with migrating everything yet. Shall we lower the log level to debug for now? (as we already did for 18). |
ah. yeah, maybe. but also finally migrate those things 😉 |
What´s the plan now? The log flooding on info level is indeed not optimal. Thanks for your feedback. |
I would also like to push this further. This is quite distracting from actual interesting log lines. |
we have to migrate the code that uses the old events
I can give you pointers on where to look. But just open your IDE and see where the constant is used. Then you can replace the emitting and listening parts with a new event. |
Any news on this? We're on 20.0.5.2 and have the same issue. |
It's not fixed yet. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Just saw that a lot of comments got hidden. Usually comments get hidden because they are "off-topic, outdated, or resolved" - is there anything we can do to provide you with required help or additional details (logfiles, config) for this issue? |
No. I marked some comments as duplicate. Also added how to use GitHub to the first post.
The problem is still there and the status of this issue is open. I think there could be a connection.
True. Still the comment does not add any value to this issue. It only sends a notification to everyone subscribed. Your best option is to write a filter for your log management. And send a pull request of course ;) |
As far as I have debugged this log entry it comes down to the following:
So now I looked for all occurrences where a And this is just the the nextcloud core, not to mention all the apps that also need to adjust to the new event system. |
Meanwhile my Log is full of similar entries and I "move" them to debug by command (from Stackoverflow) in cron:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Workaround is to set |
Indeed "old" installations of nextcloud have a default loglevel of 0 set in their auto-generated |
This is something i can not confirm at all. Was takeing a look into my setup here regarding audit logging. As soon as i lowered the loglevel to "1" - as advised in the docs - for usage of the admin audit log i got these in my logs.... |
IMHO deprecation messages are completely inappropriate at INFO level. These are developer targeted messages, not end-user targeted messages. INFO is for end-users. |
As a quick hack to filter your logs, you can use some javascript in the browser console to remove elements you aren't interested in and/or only see the ones you care about. window.setInterval(() => {
Array.from(document.getElementsByTagName("tr"))
.filter(log => log.innerText.includes("Deprecated"))
.forEach(log => log.parentElement.removeChild(log));
}, 1000); Every second, it finds all the "tr" elements (table rows) and deletes the ones that contain "Deprecated" in the row's text. Modify as you please to filter in different ways, for example you can search for only logs that contain "http" by changing the "filter" condition: ...
.filter(log => !log.innerText.includes("http"))
... You will have to reload the page to get the removed items back and turn off the filter. (clearInterval could be helpful here, but that's beyond the scope of this hacky script.) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
OCP\IDBConnection::*
@ChristophWurst this is what I mean with my remark that new features seem to be more relevant than fixing old bugs. This one exists for almost 3 years now and still fills the log files of users... |
This is not even a bug. |
Hi, this is flooding the admin logs and complicating investigations when issues occur |
As said in #24380 (comment) I haven't had this issue since upgrading to version 23+ (currently on 26 with PHP 8.1 and this is not a problem) |
I will upgrade and check again |
Please test and review #37816 |
I think we can safely close this Issue out, no? With the merging of #37816 (and its release in NC27) and the quietness of this issue thread since... |
How to use GitHub
Steps to reproduce
Expected behavior: no deprecation logs on info level
Current behavior: Multiple deprecation logs on info level
Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used
Deprecated event type for {"[object] (OCP\SabrePluginEvent)":{"*statusCode":200,"*message":"","*server":{"[object] (OCA\DAV\Connector\Sabre\Server)":{"tree":"[object] (OCA\DAV\Connector\Sabre\ObjectTree)","*baseUri":"/remote.php/webdav/","httpResponse":"[object] (Sabre\HTTP\Response)","httpRequest":"[object] (Sabre\HTTP\Request)","sapi":"[object] (Sabre\HTTP\Sapi)","*plugins":[],"transactionType":null,"protectedProperties":{"...":"Over 20 items, aborting normalization"},"debugExceptions":false,"resourceTypeMapping":[],"enablePropfindDepthInfinity":true,"xml":"[object] (Sabre\DAV\Xml\Service)","*listeners":{"...":"Over 20 items, aborting normalization"},"*wildcardListeners":[],"*listenerIndex":[],"*logger":null}},"Symfony\Contracts\EventDispatcher\EventpropagationStopped":false}}: null
Deprecated event type for OCP\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\Component\EventDispatcher\GenericEvent is used
Deprecated event type for OCP\IDBConnection::CHECK_MISSING_INDEXES: Symfony\Component\EventDispatcher\GenericEvent is used
Deprecated event type for OCP\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\Component\EventDispatcher\GenericEvent is used
The text was updated successfully, but these errors were encountered: