Add timestamp to client debug logger. Fix api controller.