v3.20 added conditional logging