Error of logging has beex fixed
Additional debug added