mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
RequestServer: Do not log disk cache version mismatches on first-run
Particularly on test runs, this is just noise.
This commit is contained in:
parent
2a18b6b802
commit
4fddd6a681
Notes:
github-actions[bot]
2025-11-21 07:50:04 +00:00
Author: https://github.com/trflynn89
Commit: 4fddd6a681
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6886
Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ ErrorOr<CacheIndex> CacheIndex::create(Database::Database& database)
|
|||
CACHE_METADATA_KEY);
|
||||
|
||||
if (cache_version != CACHE_VERSION) {
|
||||
dbgln("\033[31;1mDisk cache version mismatch:\033[0m stored version = {}, new version = {}", cache_version, CACHE_VERSION);
|
||||
if (cache_version != 0)
|
||||
dbgln("\033[31;1mDisk cache version mismatch:\033[0m stored version = {}, new version = {}", cache_version, CACHE_VERSION);
|
||||
|
||||
// FIXME: We should more elegantly handle minor changes, i.e. use ALTER TABLE to add fields to CacheIndex.
|
||||
auto delete_cache_index_table = TRY(database.prepare_statement("DROP TABLE IF EXISTS CacheIndex;"sv));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue