Enabled debugging flag in index.php and also updated logging routes