File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/AudioTools/CoreAudio/AudioHttp Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,9 @@ class URLStream : public AbstractURLStream {
96
96
total_read = 0 ;
97
97
active = result == 200 ;
98
98
LOGI (" ==> http status: %d" , result);
99
+ #if USE_AUDIO_LOGGING
99
100
custom_log_level.reset ();
100
-
101
+ # endif
101
102
return active;
102
103
}
103
104
@@ -121,8 +122,9 @@ class URLStream : public AbstractURLStream {
121
122
total_read = 0 ;
122
123
active = result == 200 ;
123
124
LOGI (" ==> http status: %d" , result);
125
+ #if USE_AUDIO_LOGGING
124
126
custom_log_level.reset ();
125
-
127
+ # endif
126
128
return active;
127
129
}
128
130
@@ -247,14 +249,17 @@ class URLStream : public AbstractURLStream {
247
249
return request.available () > 0 ;
248
250
}
249
251
252
+ #if USE_AUDIO_LOGGING
250
253
// / Defines the class specific custom log level
251
254
void setLogLevel (AudioLogger::LogLevel level) { custom_log_level.set (level); }
252
-
255
+ # endif
253
256
const char * urlStr () { return url_str.c_str (); }
254
257
255
258
protected:
256
259
HttpRequest request;
260
+ #if USE_AUDIO_LOGGING
257
261
CustomLogLevel custom_log_level;
262
+ #endif
258
263
Str url_str;
259
264
Url url;
260
265
long size;
@@ -282,7 +287,9 @@ class URLStream : public AbstractURLStream {
282
287
283
288
bool preProcess (const char * urlStr, const char * acceptMime) {
284
289
TRACED ();
290
+ #if USE_AUDIO_LOGGING
285
291
custom_log_level.set ();
292
+ #endif
286
293
url_str = urlStr;
287
294
url.setUrl (url_str.c_str ());
288
295
int result = -1 ;
You can’t perform that action at this time.
0 commit comments