forgot this
headers sent redirect debug log
Added a debug log output if redirect fails from headers already sent and debug mode is on.