Change the prototype of get_logs to add only_errors
Fix the HMAC