Skip site navigation (1) Skip section navigation (2)

wxFFile/wxLog on OSX

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Andreas Pflug" <pgadmin(at)pse-consulting(dot)de>
Cc: <pgadmin-hackers(at)postgresql(dot)org>
Subject: wxFFile/wxLog on OSX
Date: 2005-10-14 12:03:04
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC3478@ratbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: 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.

Responses

pgadmin-hackers by date

Next:From: svnDate: 2005-10-14 12:57:03
Subject: SVN Commit by dpage: r4543 - in trunk/pgadmin3: pkg/mac src/utils
Previous:From: svnDate: 2005-10-14 11:09:01
Subject: SVN Commit by dpage: r4541 - trunk/pgadmin3/pkg/src

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group