[checkmk-commits] [Checkmk/checkmk] b7317c: logwatch: factor out function