We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f901d77 commit 59a2a8dCopy full SHA for 59a2a8d
src/native/src/frame_extractor.mm
@@ -7,7 +7,7 @@
7
#include <iostream>
8
9
#define DEBUG_LOG(msg) do { \
10
- if (std::getenv("VITEO_DEBUG")) { \
+ if (debugLogging) { \
11
std::cerr << "[viteo] " << msg << std::endl; \
12
} \
13
} while(0)
@@ -35,8 +35,12 @@
35
size_t batch_index = 0;
36
37
bool isOpen = false;
38
+ bool debugLogging = false;
39
40
Impl(size_t batch_size_param) : batch_size(batch_size_param) {
41
+ if (std::getenv("VITEO_DEBUG")) {
42
+ debugLogging = true;
43
+ }
44
DEBUG_LOG("Setting batch size to " << batch_size);
45
}
46
0 commit comments