Lower the log-level and soften the language for our Zstd ABI compat check.

See: tpo/core/tor#40815.
This commit is contained in:
Alexander Færøy 2023-09-14 22:26:41 +02:00
parent cf98f4d7b3
commit 3d160b37c2
2 changed files with 7 additions and 2 deletions

4
changes/ticket40815 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (compression, zstd):
- Use less frightening language and lower the log-level of our run-time ABI
compatibility check message in our Zstd compression subsystem. Fixes bug
40815; bugfix on 0.4.3.1-alpha.

View File

@ -522,9 +522,10 @@ tor_zstd_warn_if_version_mismatched(void)
tor_zstd_format_version(runtime_version, sizeof(runtime_version), tor_zstd_format_version(runtime_version, sizeof(runtime_version),
ZSTD_versionNumber()); ZSTD_versionNumber());
log_warn(LD_GENERAL, log_info(LD_GENERAL,
"Tor was compiled with zstd %s, but is running with zstd %s. " "Tor was compiled with zstd %s, but is running with zstd %s. "
"For safety, we'll avoid using advanced zstd functionality.", "For ABI compatibility reasons, we'll avoid using advanced zstd "
"functionality.",
header_version, runtime_version); header_version, runtime_version);
} }
#endif /* defined(HAVE_ZSTD) && defined(ENABLE_ZSTD_ADVANCED_APIS) */ #endif /* defined(HAVE_ZSTD) && defined(ENABLE_ZSTD_ADVANCED_APIS) */