H
H
HeBonpoc2014-08-17 22:33:51
Yii
HeBonpoc, 2014-08-17 22:33:51

Yii profiling: where are requests made from?

I am writing my first website in Yii.
I connected profiling as written in the manual and I see that Yii makes 3 queries to the database.
Question:
Is it possible to somehow see from which place in the code these requests are made?
I think you can go into the query f-th and do something with debug_backtrace there, but this is a crutch, they probably already thought about everything for me :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-08-17
Protko @Fesor

Yii: Crutch Driven Development
But seriously, yes. Just implement your wrapper over the logger, which also records the trace. Query logs are still made at the DBAL level and not at the application level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question