Subject | Re: [firebird-python] Problem with tracing and FDB |
---|---|
Author | Philippe Makowski |
Post date | 2013-10-24T07:36:32Z |
Le 23/10/13 11:41, Harriv a écrit :
in trace_list(), and if same config and trace work for your system
outside Python code
> Hi,seems not, but can you check if trace started, and if you have something
>
> I tried to get trace log from Python application, but haven't yet
> succeeded. I'm using Python 2.7, Firebird 2.5.2 and FDB 1.4. This is what I
> tried:
>
>>>> import fdb>>> svc = fdb.services.connect(password='masterkey', host='localhost')>>> trace_config = """<database>
> enabled true
> log_connections true
> log_transactions true
> log_statement_finish true
> time_threshold 0
>
> </database>""">>> trace_id = svc.trace_start(trace_config,
> 'test_trace_2')>>> svc.readline()
>
> Program stops there, svc.readline never returns and I have to kil Python
> shell. Am I missing something or where do I go wrong?
>
in trace_list(), and if same config and trace work for your system
outside Python code