Adding flag to enable/disable console logs at a module and global level