Switch debug to symfony internals. Buffering should be resolved. Added security log to debug