Subject Re: [firebird-python] Problem with tracing and FDB
Author Harriv
Trace_list shows sessions as expected.

I tried with fbtracemgr.exe and same config. It seems to work.


On Thu, Oct 24, 2013 at 10:36 AM, Philippe Makowski <pmakowski@...> wrote:
 

Le 23/10/13 11:41, Harriv a écrit :


> Hi,
>
> 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?
>
seems not, but can you check if trace started, and if you have something
in trace_list(), and if same config and trace work for your system
outside Python code