Debugged the logger