Added a configuration option for log hiding and removed the prints everywhere