mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 16:15:29 +00:00
Add env var to allow disabling usage reporting
In the spirit of being nice and privacy-conscious, setting `SERENA_USAGE_REPORTING` to `false` will disable usage reporting. By default, usage reporting is enabled.
This commit is contained in:
1 parent
34a703ad50
commit
4b2c7bd849
1 file changed
+2
-3
+2
-3
@@ -410,10 +410,9 @@ class SerenaAgent:
|
||||
self._send_usage_info()
|
||||
|
||||
def _send_usage_info(self) -> None:
|
||||
is_ci = os.getenv("CI") == "true" or os.getenv("GITHUB_ACTIONS") == "true"
|
||||
if is_ci:
|
||||
if os.getenv("CI") == "true" or os.getenv("GITHUB_ACTIONS") == "true" or os.getenv("SERENA_USAGE_REPORTING") == "false":
|
||||
return
|
||||
params = {
|
||||
params: dict[str, str | int] = {
|
||||
"os": platform.system(),
|
||||
"dashboard": int(self.serena_config.web_dashboard),
|
||||
"version": self.version,
|
||||
|
||||
Reference in new issue
Block a user