Magit, sqlite3, and Emacs

I’m using Emacs 28 (emacs28-gtk3) and upon launching magit, I’m greeted with this message:

[1]: Supported since Emacs 29.1, provided it was not disabled
     with `--without-sqlite3'.
[3]: On Debian Disable showing Disable logging

I tried solution 3 by installing pkgs.sqlite, but still, the message is shown. Moving to Emacs 29.1 is not a solution because it has problems with lsp-mode in Go.