1

I'm using a master/slave connection with Doctrine in my Symfony Application

The configuration is really basic, with one master and one slave

I have problems between master and slave (replica lags) in my app, and I want debug that.

When I do a tail -f app/logs/dev/dev-2018-05-15.log I can see all doctrine.DEBUG queries, but only the SQL.

Is there a way to see which query is performed on which slave/master?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Bouffe
  • 770
  • 13
  • 37
  • 1
    I hope that this can help you [log sql queries](https://stackoverflow.com/questions/303994/log-all-queries-in-mysql) – mohamed jebri May 15 '18 at 16:09
  • Yes, I did that, but I was wondering if something existed in Symfony/Doctrine to get it directly inside the Symfony logs – Bouffe May 15 '18 at 16:54

1 Answers1

-1

I think that monolog can help you : see this monolog doctrine

mohamed jebri
  • 261
  • 3
  • 13