Am 09.03.2012 10:23, schrieb SmokeyD:
> So it seems tg-admin sql create doesn't take log.cfg into account. Is
> that right?
The tg-admin commands should read log.cfg and all other .cfg files in
the config directory. You can check by putting a syntax error in log.cfg
and then run "tg-admin sql create" from your project directory. The
syntax error is correctly reported.
The only problem is that the sql create command uses the SQLObject
manager which simply prints to standard output, and the builtin command
for SQLAlchemy does the same. I don't see it as a big issue since you
run sql create exactly once and usually want to see your result directly
on the screen, or you can redirect the output to wherever you like. The
logging sections in the config are intended for the output produced by
the application server.
> Aside from that I am also having trouble with tg-admin with my own log
> handler. I created my own loghandler, which I include in commands.py
The problem is here that commands.py is not executed when you run
tg-admin. I have currently no good solution for that, maybe just put it
in the __init__.py file of the package with your project name.
-- Christoph
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.