translog files

John Ralls jralls at ceridwen.us
Mon Feb 14 13:43:27 EST 2011


On Feb 14, 2011, at 9:30 AM, David G. Hamblen wrote:

> On 02/14/2011 11:51 AM, John Ralls wrote:
>> On Feb 14, 2011, at 7:41 AM, David G. Hamblen wrote:
>> 
>>> On 02/14/2011 09:54 AM, Forest Bond wrote:
>>>> Hi,
>>>> 
>>>> On Sun, Feb 13, 2011 at 12:44:08PM -0800, John Ralls wrote:
>>>>> On Feb 13, 2011, at 10:53 AM, Anthony Messina wrote:
>>>>> 
>>>>>> I am using gnucash-2.4.0-1.fc14.x86_64 with the PostreSQL backend with
>>>>>> great success.  Thank you!  However, with each opening of GnuCash, files
>>>>>> like translog.20110213115640.log are left in my $HOME/Documents folder.
>>>>>> Are these files supposed to be left in that location or might this be a
>>>>>> packaging problem? Up to now, I've been deleting the clutter manually.  -A
>>>>> Gnucash isn't writing those, so I expect that Postgresql is.
>>>> Are you sure about that?
>>>> 
>>>> http://svn.gnucash.org/trac/browser/gnucash/trunk/src/engine/TransLog.c
>>>> 
>>>> Thanks,
>>>> Forest
>>>> 
>>> They're in exactly the same format that you get when using the XML backend, except that they are written into my home directory instead of my Gnucash data directory. See engine/TransLog.c.  FYI I'm using Ubuntu 10.10 and GC 2.4.0).  In both XML and MySQL, the preference to never save log files seems to be ignored.
>> I stand corrected.
>> 
>> It would appear that no filename is getting created for server URLs (which don't have a filename, so one should be constructed from the URL), so xaccOpenLog() is generating a default. Oddly, SQLite files don't generate them at all. Of course, with a server backend, there isn't an accounts directory as far as Gnucash is concerned, so $HOME is as logical a place as any to put them.
>> 
>> Looks to me like there are 3 bugs and an enhancement:
>> 
>> Bug: Transaction logs on server backends should get a filename constructed from the URL.
>> 
>> Bug: The "Retain Log Files Never" General Preference should disable transaction logging.
>> 
>> Bug: SQLite3 backend doesn't write logs.
>> 
>> Enhancement: There should be a preference for where server-backend logs should go.
>> 
>> Anything else?
> 
> I recall a thread last June (perhaps https://lists.gnucash.org/pipermail/gnucash-devel/2010-June/028780.html)  where the value of any logging for the dbi backends was questioned by Geert.
> 

Yes, interesting. So then the 1st bug should be "Transaction logs on server backends should be suppressed".

I'm less comfortable with suppressing SQLite3 logs, because AFAICT SQLite3 doesn't provide its own logging mechanism. 

Regards,
John Ralls





More information about the gnucash-user mailing list