Skip to content

Commit 5b6c17e

Browse files
committed
disable verbose printing
1 parent 9ee19ba commit 5b6c17e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/stream/stream.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ void whisper_print_usage(int /*argc*/, char ** argv, const whisper_params & para
135135
fprintf(stderr, "\n");
136136
}
137137

138+
size_t write_data(void *buffer, size_t size, size_t nmemb, void *userp)
139+
{
140+
return size * nmemb;
141+
}
142+
138143
bool send_webhook_request(const std::string &node_id, const std::string &data) {
139144
CURL *curl;
140145
CURLcode res;
@@ -144,7 +149,7 @@ bool send_webhook_request(const std::string &node_id, const std::string &data) {
144149
if (curl) {
145150
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
146151
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
147-
152+
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
148153
res = curl_easy_perform(curl);
149154
if (res != CURLE_OK) {
150155
return false;

0 commit comments

Comments
 (0)