-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Should we stop using Carp::Always by default in the release version to reduce "noise"? #338
Comments
log4perl has been proposed in a very old bug report, maybe still worth considering. |
In normal execution, Carp::Always has no effect. It only adds more details if an exception is being thrown. The main increase of the noise comes from the lines like "Variable "%session_screens" will not stay shared at bin/shutter line 6997.", but those are not exceptions, so are written this way regardless of any Carp::Always. It does increase the noise in cases like this:
Here, all lines except for the first one come from Carp::Always. |
Maybe it is possible to activate this additional output only if the --debug switch is used? |
Options are parsed quite late there, after all the .pm files were evaluated. |
I wonder where those warnings came from. As far as I remember they were not there in versions prior to the GTK3 port but I'm pretty sure that the underlying problem was already there, it just became visible now. But how did it happen? |
I think it comes from the time where I had to switch from Gtk2::Unique to Gtk3::Application which has different API, so I had to move some functions around. Maybe eventually @ruzhnikov finishes his refactoring to classes which should make everything clearer, and not rely anymore on a bunch of variables which are essentially global but not even declared as such. |
Shutter has a --debug option, maybe we should use Carp::Always only if it is passed to reduce the amount of output during regular usage?
The text was updated successfully, but these errors were encountered: