-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Include name of binary into default BISECT_FILE name. #96
Conversation
By including the name of the binary running, logs for multiple binaries can go to the same directory without having to use the env variable. Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Looks reasonable. It might break some build processes, but hopefully most projects are using something like This commit breaks the usage test. Can you please amend it by including changes to tests/usage/Makefile, specifically the lines mentioning |
One thing that concerns me is that |
If env var
Hence, in that case the user is expected to supply a name that at least includes I don't see the failing test when doing |
Hmm, to run that test, you have to install your updated Bisect_ppx and then do I think a simpler solution to the environment variable thing is to provide something like |
Actually, your proposal may be better. Would you be okay with the default being EDIT: That wouldn't be fully backwards-compatible, actually. I think for full backwards-compatibility, you would have to treat EDIT 2: And hope nobody's prefix has |
My use case is: we are instrumenting a bunch of daemons and the less configuration the better. Right now they would log all into the same place, using the same name. Hence, I would prefer a default where I can see which daemon wrote which file. The |
Although, I'll defer to @aantron on this, but I would be very hesitant to accept this patch. You're trying to push your desired configuration into |
I'm using the env variable right now. However, I believe not to be the only one having the problem that the connection between the files produced and where they come from is weak and a stronger connection is desirable. As I had suggested, it could be even inside the |
I agree with @rleonid. It seems potentially worthwhile to have the ability to include the binary name, or PID, or some other identifier(s) in If you know specific people that are on GitHub and can comment on this issue, we would like to hear their opinions as well :) |
I fine with giving up my pull request. To continue the discussion,
|
This is cool, and probably a reason not to add a "proper" API. I imagine few projects actually want a hard dependency on Bisect_ppx, or to introduce conditional compilation due to it. I am closing this for now. I am under the impression that setting You are welcome to reopen if you have additional thoughts. There are good ideas in the PR – perhaps some variation of it should be added. Also, parts of the issue might be addressed by modifying the documentation. Perhaps the |
To summarize, the proposals were:
|
Logging the desired output seems safe and easy. |
By including the name of the binary running, logs for multiple binaries
can go to the same directory without having to use the env variable.
Signed-off-by: Christian Lindig christian.lindig@citrix.com