Stop using deprecated logging API in Sphinx suspicious checker (GH-9875)

(cherry picked from commit ee171a26c1169abfae534b08acc0d95c6e45a22a)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 file changed