You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix file loggin log rotation
Fixes #97066 `RBSet` were used on `RotatedFileLogger` because it guarantees that iterating it is done via `operator<`. This is important because `RotatedFileLogger` depends on this behavior to delete the oldest log file. On #61194 `HashSet` was added and all `RBSet` uses were replaced by `HashSet`. When that happened, the iteration in order is guaranteed to be the insertion order, wich made that `RotatedFileLogger` delete the newest log file. As a bonus, I added unit test for `RotatedFileLogger` and `CompositeLogger`.
This commit is contained in:
committed by
Pablo Andres Fuente
parent
f0f5319b0b
commit
d1338528f9
@@ -49,6 +49,7 @@
|
||||
#include "tests/core/io/test_ip.h"
|
||||
#include "tests/core/io/test_json.h"
|
||||
#include "tests/core/io/test_json_native.h"
|
||||
#include "tests/core/io/test_logger.h"
|
||||
#include "tests/core/io/test_marshalls.h"
|
||||
#include "tests/core/io/test_packet_peer.h"
|
||||
#include "tests/core/io/test_pck_packer.h"
|
||||
|
||||
Reference in New Issue
Block a user