just changed the logging statement to see if data is printed correctly or not.