Set log level and add more log statements