To enable kernel logs:
$ echo "module wireguard +p" | sudo tee /sys/kernel/debug/dynamic_debug/control
To watch the logs:
$ sudo dmesg -wT
To disable logs:
$ echo "module wireguard -p" | sudo tee /sys/kernel/debug/dynamic_debug/control
Reference: https://ubuntu.com/server/docs/troubleshooting-wireguard-vpn