logging: work around bogus Coverity warning