diff --git a/resources/analytics_handler.py b/resources/analytics_handler.py index 637bed005..fbdac3e2f 100644 --- a/resources/analytics_handler.py +++ b/resources/analytics_handler.py @@ -64,6 +64,9 @@ class Analytics: return if not log_file.exists(): return + if self.constants.commit_info[0].startswith("refs/tags"): + # Avoid being overloaded with crash reports + return commit_info = self.constants.commit_info[0].split("/")[-1] + "_" + self.constants.commit_info[1].split("T")[0] + "_" + self.constants.commit_info[2].split("/")[-1] diff --git a/resources/logging_handler.py b/resources/logging_handler.py index 292f27cc1..c6b64ad93 100644 --- a/resources/logging_handler.py +++ b/resources/logging_handler.py @@ -228,7 +228,11 @@ class InitializeLoggingSupport: error_msg += f"\n\n{traceback.extract_tb(tb)[-1]}" cant_log: bool = global_settings.GlobalEnviromentSettings().read_property("DisableCrashAndAnalyticsReporting") + if not isinstance(cant_log, bool): + cant_log = False + if self.constants.commit_info[0].startswith("refs/tags"): + cant_log = True if cant_log is True: error_msg += "\n\nReveal log file?"