-
Notifications
You must be signed in to change notification settings - Fork 230
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
RMG_backup.log is always same as RMG.log #92
Comments
@stroiano did you figure out what could cause the described problem? (or manage to reproduce it?) |
Hmm, this is bizarre. I didn't originally delve too far into the root of the problem, but I was able to reproduce the problem.. once. I ran the minimal example and canceled immediately after the log header loaded, then ran it again to completion. The resulting RMG.log and RMG_backup.log files both contained the full run. I thought maybe os.remove was causing some problem so I modified it to just rename the files to the next increment. This resulted in any number of unique log files, so I thought I'd fixed the problem with the added bonus of storing more backups. However, I just reverted my "fix" and, sure enough, the log files are now unique. So, I have no idea what was causing your problem or how I was able to recreate it once, but I can confirm that logging works fine for me now, with or without 88225ee. You haven't seen this anywhere besides Opportunity? |
I think I've only run into it on Opportunity. On Jul 21, 2012, at 11:30 PM, "Sean Troiano" [email protected] wrote:
|
I just tried two runs on Opportunity without my "fix" and still got two unique logs. Not sure how else to try to reproduce the problem. I'll remove the "Closes" tag from b81cb8f9f36e009b31a972e4424e7440f153689f since I clearly haven't tracked down the source of this issue. |
@faribas, I have just realized what must have been happening here.
This immediately wipes whatever was in RMG.log and starts piping the STDOUT from the job into the RMG.log file. Less confusing behaviour would be achieved by doing something like:
|
It is meant to be a saved copy of the PREVIOUS run's log, but it seems to be an exact duplicate of the currently running log file. Is it being copied over and deleted constantly, or do we have two file handles pointing to the same thing, or what? I'm not sure, but it seems wrong. Perhaps we don't need it anyway.
The text was updated successfully, but these errors were encountered: