Change sha256 to hmac with sha256
Add onlyErrors parametter to getLogs