ladon-dev-team team mailing list archive
Mailing list archive
Re: [Question #231890]: how to debug a ladon script?
Question #231890 on ladon changed:
Status: Open => Answered
jsgaarde proposed the following answer:
I would use a logger if I were you if you want to mimic the real world situation as much as possible. You can of course start modify your handler to run with pdb and then start apache in single process mode:
# /usr/sbin/apache2 -DONE_PROCESS
If you choose to go with inserting logging in your service method maybe
this can help:
>>> import ladon.tools.log as log
>>> log.info('Log something!')
jakob@web-misc:~$ cat /tmp/ladon_log
2013-07-06 07:01:02,080 - Log something!
Best regards Jakob Simon-Gaarde
You received this question notification because you are a member of
Ladon Developer, which is an answer contact for ladon.