patch slow logging