Check if debugbar is enabled before logging things

Can run into memory issues otherwise (logging many queries/events etc.)
Remove Twig

Not working, and we already have the Views collector.