print logs only for debug builds