moved log to debug