-
-
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
[Files sharing] Log message: "/appinfo/app.php is deprecated" #23046
Comments
Increase the log level to 1 or higher. It's expected for level debug to log deprecated calls. |
I had the same problem. |
Debug message -> expected. |
Core apps really shouldn't trigger deprecation messages, but get fixed (arguably prior to a release). |
@andreas-p could you check if this green button is blocked for you? /s |
@ChristophWurst No it's not. If you're suggesting I should create a PR for this (officially closed!) issue: For my debugging purposes, I commented out the deprecation message in lib/private/legacy/OC_App.php. files_sharing/appinfo/app.php looks different from what I'm familiar with, so I refrained from digging there. |
As a user my pull request would simply be disabling the message altogether. But that might be useful for developers. Idea is.. if your "expected debug message" takes a dump on the UI which is user-facing then your "feature" is as useful as this guy's facial tattoo: Maybe another solution would be to keep deprecation messages away from the UI. Or give the user a way to use filters? Otherwise this is how much fun you can have as a user trying to debug why the email app chokes on ssl connections: |
So as a user you're complaining about a debug log output. Seriously, why do you worry about this so much? You enable debug mode for a few secs to gather some info, then you disable it again. Now tell me: would you rather have a silent log where we, the maintainers, can't help you solve an issue due to the lack of information? |
No, actually I'm not complaining about a debug log output, and I've already conceded that deprecation notices might be useful for developers. What I'm specifically stating is that deprecation notices at a rate of 3/second is a useless thing in the UI.
I thought deprecation notices are more of a reminder to later tackle the phased out code. Am I wrong? |
With the stateless nature of php it's hard to debounce this. Every request will trigger it. |
Okay, understood. Thank you. |
In particular, if you're using the Logging app with the auto-refresh option checked in the web UI, the requests generated by the auto-refresh itself will trigger this very frequently. I ran into this myself recently and if you turn that off and then tail the actual log file on the command line, you'll see it settles down. |
TBH I saw no harm in commenting out that line and that's how I managed to get a usable UI. But it's a good tip, thank you. |
FYI: Updated from NC 19.0.5.2 to 20.0.2.2 and loglevel was set from 1 to 0 in config.php during update. Machine went totally crazy having Nextcloud.log rotated (cut and moved at 100 MB size) automatically few times. I guess update isn´t reliable yet... |
I do not want to continue this hate-thread but I fear during development for the cookbook app this issue caused a regression as we were not able to test accordingly. Currently, we are recovering but the main issue can be brought down to this issue. For now, I am able to see some useful information by disabling the I tried to create a patch in this PR but I am not able to get things right, I am missing the knowledge of the internal structure of the NC core. I am asking @ChristophWurst to reconsider closing this issue as I can only second the general statement/issue here: A component uses a deprecated method and that should be replaced by a newer structure. The fact that it is a core component just makes it hard for other contributors to contribute a "quick fix". If this is on the agenda for a near-future update, perfect, just give a short statement and I am going to keep waiting. |
@ChristophWurst I am opening an issue to discuss the problem again. |
It would be nice to get a solution here fast. I just wanted to track some debug messages while continuing development and this situation still exist. The problem is not, that a lot of debugging messages are generated because of this deprecation message, the problem is that debugging is impossible ATM. There are something about 45 deprecations messages per second. See the log file snippet in #23351. |
So what would you suggest as a solution? |
It seems, that the logger itself is responisble for the endless production of deprication warnings in the logfile. If this could be avoided the problem would be smaller and acceptable. As I am not familiar with the core development, I have no real proposal for a solution. |
Correction: seems that the files_sharing and contacts are my problem here. |
@dartcafe I mentioned this up-thread; see #23046 (comment). You can get a vaguely reasonable log output with |
We have loglevel 1 and the log is spammed with deprecation warnings, 25GB log in the last days. |
Wth are you talking about
…On Fri, Jan 22, 2021, 1:36 AM Bjoern Franke ***@***.***> wrote:
We have loglevel 1 and the log is spammed with deprecation warnings, 25GB
log in the last days.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23046 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARULPN57G2EOV52LAFLOQFDS3E2HVANCNFSM4RZQC2IQ>
.
|
Some entries above @ChristophWurst says users should not complain about debug output when setting loglevel to |
Great now that we have all people combined that complained about the problem, here's the PR that fixes it: #25267 you're welcome |
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.
One step closer to a more reasonable debug log: #25497 ✌️ |
@ChristophWurst Cool 👍. I hope it will be much clearer now and will not take up as much space. |
The logfile flooding still exists in NC22. Wouldn't it be a good idea to remove the deprecation at least for the core apps? I list the following apps in my NC22 installation:
|
Be my guest and help finish what I was unable to finish #25267 😉
|
I would, if I would have the time and the knowledge. Polls alone takes more time, as I normaly could afford. |
No worries ✌️ We'll have to wait for someone more knowledgeable then because the sharing stuff was also out of my area of expertise and thus got stuck. |
File sharing is migrated, so closing this. |
How to use GitHub
Steps to reproduce
I keep getting the following message in my logs:
Server configuration
Database:
phpMyAdmin
PHP version:
7.3.16
Nextcloud version: (see Nextcloud admin page)
20.0.0 RC2
App:
Files sharing
1.12.0
The text was updated successfully, but these errors were encountered: