-
-
Notifications
You must be signed in to change notification settings - Fork 268
Enable a clean log file without suppressing stderr unconditionally #2627
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
Enable a clean log file without suppressing stderr unconditionally #2627
Conversation
|
@OliverO2 I try to have a closer look as time permits but possibly it gets delayed until eternity @gdha @rmetrich @pcahyna and all @rear/contributors In general (except exceptions) I will not further deal with such kind of issues. |
|
@jsmeix I have invested considerable time into this PR (it took a lot of searching). This was an attempt to address your valid concerns but it feels like the road is blocked. In addition, unfortunately, I see no empathy to also address my concerns. Sorry to see that we could not find a more constructive path here. |
|
@OliverO2 I want to make it possible to move this issue forward in a constructive way. Regarding "no empathy": Regarding "also address my concerns": Regarding what the actual problem is: If my understanding of the actual problem is right So what is needed is not to have stderr in any case in the log but If this can be implemented it should fix the specific actual problem here My totally untested off the top of my head idea cf. #2416 (comment) It cannot be used as is in ReaR because in debug modes stderr must append to the log where SPECIAL_FILE appends to the log in debug modes Perhaps we should redirect in non-debug modes strderr in general Because stderr messages could contain sensitive information |
|
@jsmeix
It does not look likely that ReaR is on a path where I could continue to rely on it the way I need to. So I have decided to create an internal fork just for my use cases based on commit 2433c72. I have already heavily modified the code to simplify it and increase usability (at least for me). The downside is that I can no longer track upstream developments. But in the end, this helps me to better allocate resources. Hopefully, it also helps you to proceed with what you find necessary to support ReaR in the future. |
|
@OliverO2 Disputes are normal and very human, however, for this alone leaving the project is hard and we cannot and will not stop you of doing that. You will fix your problems in the short run, but over a couple of months when we release a new major version of ReaR you may regret it. We try to find a way in reasonable solutions and/or fixes that does not break anything and we know even then we break our code sometimes. As you said there are only a few key contributors for the moment (like @jsmeix and @pcahyna who are trying to get the code to work under all circumstances after years of adding new features without seeing the bigger picture). |
|
@gdha Thank you for your kind words. Let me assure you that my decision is not a knee-jerk reaction to that dispute. As you say, disputes are normal (and even healthy), we have had those before, and it is not something in general to worry about. This one went a bit astray but not necessarily to the extent that we could not have resolved it in one way or another. My concern in this case is the limited time I have available, and the characteristics of changes I needed to use rear safely and confidently. While unused code in plugins was never an issue for me (it just sits there), usability was not good enough. The required changes deeply affect existing ReaR code, and contradict what I perceived as the prevalent philosophy guiding ReaR at this time. I am aware that this has a downside, cutting me off from bug fixes and added functionality I might find useful. But doing so anyway also shows my confidence that much of ReaR (at least the way I am using it) has become pretty mature over time and does not require lots of maintenance. Anyway, contributing for a couple of years has been a pleasure and ReaR has mostly been a pretty welcoming project with respect to contributions. Regarding your thoughts on cleanup, yes, consolidation is always a good idea as it makes the code base more manageable. I cannot say much about plugins as they did not really affect me (they might affect you when dealing with issues and testing releases, though). What I would consider in addition is to remove duplicate functionality, such as two sets of Btrfs code, two methods for disk sizing, and possibly others. |
|
@OliverO2 @jsmeix Do not get it wrong that we close this PR as we see no outcome on an acceptable PR by all involved parties. |
This PR addresses concerns in #2623 (comment), just without throwing the baby out with the bath water.
When used with ReaR's default configuration, the only stderr messages remaining in the log are these (each preceded by one regular log line):
In my view, all of these should not raise concerns even for the casual user, with the following exceptions, which indicate that something should be fixed:
/runtemporary file system:I have checked other
typeinvocations throughout ReaR. They all use either-p,-P, or-t(all of which do not produce stderr messages), or they redirectstderrto/dev/null.