Logging using print... bad practice