[packagedb-cli/pkgdb2] Handle the logging from the API as well