wxFFile/wxLog on OSX - Mailing list pgadmin-hackers

From Dave Page
Subject wxFFile/wxLog on OSX
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC3478@ratbert.vale-housing.co.uk
Whole thread Raw
Responses Re: wxFFile/wxLog on OSX  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgadmin-hackers
Hi Andreas,

The first problem I've found whilst playing with out Mac port is in the
logging code. Before fixing it I just wanted to run it past you in case
you have any thoughts...

When pgAdmin starts with default settings, it almost certainly won't
have permissions to write to the default logfile. That in itself should
be easy to fix - I'll figure out the appropriate way to get the user's
home directory on Mac and stick it there.

The real problem is that wxFFile appears to be logging it's failure to
open the log file through the logging interface - if I try it in a
simple test app it pops up a 'cannot open' message box, however in
pgAdmin this gets sent back to the logger, thus causing a loop and
eventual overflow.

The simple solution would be to re-implement the WriteLog using
fopen/fprintf/fclose I guess, but do you see a better way to solve this?

Regards, Dave.

pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4541 - trunk/pgadmin3/pkg/src
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4543 - in trunk/pgadmin3: pkg/mac src/utils