Updates #3781. Squashed commit of the following: commit 43e76450b02f7ec54a1b23e5bb037685c2b89bbf Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Oct 29 13:29:34 2021 +0300 querylog: imp err handling, names commit b53cfb9c29473e5e0753169e019be5b73d42361c Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Oct 29 13:17:00 2021 +0300 querylog: fix rotation