-
Notifications
You must be signed in to change notification settings - Fork 649
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
Log file of current hour gets overwritten by default #809
Comments
Not completely confident in C++ coding yet to simply do a PR, but since I wanna start getting involved, I just wanna run this by you. It seems that here: The file is opened , passing a bitmask for write & append mode. However, here: It seems like the bitmask passed is ignored and opening in binary mode is hardcoded in instead. I assume the correct way of tackling this is to fix fstream.cpp to use the bitmask passed and visit all calls to open() to make sure that binary mode is added to the bitmask. Am I correct in any of this? |
I want to claim this issue, help me guys please to make correct workflow for first time |
@nanomobile has claimed this Issue. I've moved it to the |
how much hours is reserved for this issue ? |
What is your estimates on this issue so the Community know how many hours it is expected to take ? |
@nanomobile Checking with Core Team devs for assistance with estimation... |
Thanks a lot !
Have a perfect day !
|
i am not very good in estimations but i will say it will take 1 hour to someone with the needed knowledge of git and bitshares. clockwork already pointed to some code where it can be fixed. it could take some more(2 hours) to someone not that familiar with any of this but i think not much more than that in this particular case. the estimations in general i think can be done with a floor of no less than 1 hour and a variable roof in case something is more complicated than initially estimated or reviewers request changes to the code, etc) |
while debugging I found that problem isn't located as clockwork wrote. |
Yeah, don't take my comment as gospel...my c++ knowledge is rudimentary at best...I just wanted to know if I was thinking across the right lines |
yes sure ! Understood ! I thought the same as you ;-) Just checked your version :-) I thought you're right and I can fix it less than 1 hour :-) but need to research & debug more ... |
can be extended to 2 hours without problems IMO. |
I'd say 1 1/2 to 2hr is fair. ** Warning... Soapbox ** I'm not saying this task requires all these steps. But coding time is only part of the equation. Often, we attack a problem only to find that it affects something else. Or find that if we do it the right way, we also have to adjust this "other thing over there". My $0.02 (includes the $0.02 VAT), is that the potential candidate should have a clear understanding of what is expected, and can assist in the estimation. The first few attempts are a learning experience, and often cost the developer. But the rewards are there for endurance (speaking from experience on this point). If tasks grow beyond the initial requirements (this happens more often than we want), we should reward the developer for the value of what they were able to accomplish, even if the results are only documentation of a deeper problem. |
I've mentioned my opinions above, quoting here:
|
I'd say @abitmore has a good solution. That would require the minimal amount of changes to source code and fix the current problem. I think a separate issue should be created to refactor fc::fstream so as to be consistent with standard fstream expectations (i.e. text mode). I will create that issue. |
so @abitmore 's solution is the best ? right ? Should I implement it ? does anybody disagree ? |
@abitmore yes I mean ifstream has binary issue, the same situation means that there is issue too with ifstream :-) |
new changes in PR are ready bitshares/bitshares-fc@71b6f15 @abitmore @oxarbitrage @jmjatlanta @ryanRfox @clockworkgr so we can close this issue and merge changes from this PR ? |
Fixed with #1104. |
Steps to reproduce:
config.ini
so default log will be written to filewitness_node
witness_node
witness_node
againThe log file will be overwritten on restart.
IMHO the default behavior should be appending but not overwriting.
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: