On Tue, Jan 11, 2011 at 1:18 PM, Carey Gagnon <[email protected]>wrote:

> I've read many of the threads on logging and being noob can't wrap my head
> around it.
>
> I've "compiled" my app with py2exe. Everything functions fine. If any error
> occurs,  such as a record save validation error (which I prompt the user
> about), when the app is closed, the user is prompted with a error box
> telling them there were errors and to check the appname.exe.log file.
>
> I don't really care if it's logged but I don't want the prompt thrown at
> the user. How can this prompt be turned off?
>
> In my reading of the forums I see that things can be done with a
> logging.conf file (which most don't seem to like) or with a settings
> override file. My preference would be settings override but don't care
> either way if I can't prevent the user from getting a prompt that there were
> errors.
>
> -- Carey
>

Ok ... after a bit of research this turned out to be a py2exe issue. Seems
py2exe will raise a prompt on app exit if any stderr of any kind is raised,
even if it's handled by dabo such as any record validation failure where the
user is prompted by dabo to fix whatever the validation error is.

I used this solution:
http://www.py2exe.org/index.cgi/GuiApps
This completely suppresses sys.stderr.

Though not desirable, as no errors will get logged thus no diagnostic info
will be available, I'm too much of a python noob to know how to implement
the other solution which was this:
http://www.py2exe.org/index.cgi/StderrLog

-- Carey


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to