Skip to content

Commit 148f682

Browse files
author
Matevz Morato
committed
Disable default pipeline schema collection
1 parent a28a347 commit 148f682

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ The following environment variables can be set to alter default behavior of the
188188
| DEPTHAI_LIBUSB_ANDROID_JAVAVM | JavaVM pointer that is passed to libusb for rootless Android interaction with devices. Interpreted as decimal value of uintptr_t |
189189
| DEPTHAI_CRASHDUMP | Directory in which to save the crash dump. |
190190
| DEPTHAI_CRASHDUMP_TIMEOUT | Specifies the duration in seconds to wait for device reboot when obtaining a crash dump. Crash dump retrieval disabled if 0. |
191-
| DEPTHAI_DISABLE_FEEDBACK | Disables crash dump and pipeline schema collection used to improve the library |
191+
| DEPTHAI_ENABLE_ANALYTICS_COLLECTION | Enables automatic analytics collection (pipeline schemas) used to improve the library |
192+
| DEPTHAI_DISABLE_CRASHDUMP_COLLECTION | Disables automatic crash dump collection used to improve the library |
192193
| DEPTHAI_HUB_API_KEY | API key for the Luxonis Hub |
193194
| DEPTHAI_ZOO_INTERNET_CHECK | (Default) 1 - perform internet check, if available, download the newest model version 0 - skip internet check and use cached model |
194195
| DEPTHAI_ZOO_INTERNET_CHECK_TIMEOUT | (Default) 1000 - timeout in milliseconds for the internet check |

src/utility/LogCollection.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ void logPipeline(const PipelineSchema& pipelineSchema, const dai::DeviceInfo& de
138138
#else
139139
namespace fs = std::filesystem;
140140
// Check if logging is explicistdy disabled
141-
auto loggingEnabled = utility::getEnvAs<std::string>("DEPTHAI_DISABLE_FEEDBACK", "");
142-
if(!loggingEnabled.empty()) {
141+
auto loggingEnabled = utility::getEnvAs<std::string>("DEPTHAI_ENABLE_ANALYTICS_COLLECTION", "");
142+
if(loggingEnabled.empty()) {
143143
logger::info("Logging disabled");
144144
return;
145145
}
@@ -252,8 +252,8 @@ void logCrashDump(const std::optional<PipelineSchema>& pipelineSchema, const Gen
252252
}
253253

254254
// Check if logging is explicitly disabled
255-
auto loggingEnabled = utility::getEnvAs<std::string>("DEPTHAI_DISABLE_FEEDBACK", "");
256-
if(loggingEnabled.empty()) {
255+
auto loggingDisabled = utility::getEnvAs<std::string>("DEPTHAI_DISABLE_FEEDBACK", "");
256+
if(loggingDisabled.empty()) {
257257
logger::info("Logging enabled");
258258
auto success = sendLogsToServer(pipelineData, crashDumpData, deviceInfo);
259259
if(!success) {

0 commit comments

Comments
 (0)