Fix log level based on scope of the query and postgres version
Merge branch 'master' of https://github.com/DataDog/dd-agent