Silence log levels during unit testing the API