Prevent logging to console debug informations
Modified version