log debug fix