Added logging to debug

Added logging to debug