From e4870dc90501716ded4f16900970143aadf907b3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 29 Jun 2026 16:00:56 +0100 Subject: [PATCH] Fix test_bench.odin --- tests/heap_allocator/test_bench.odin | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/heap_allocator/test_bench.odin b/tests/heap_allocator/test_bench.odin index 4557532fc..d4b6dfc52 100644 --- a/tests/heap_allocator/test_bench.odin +++ b/tests/heap_allocator/test_bench.odin @@ -854,13 +854,11 @@ main :: proc() { opt: Options flags.parse_or_exit(&opt, os.args) - logger_data := log.File_Console_Logger_Data{ - file_handle = os.INVALID_HANDLE, - ident = "", - } - context.logger = log.Logger{log.file_console_logger_proc, &logger_data, .Debug, { + file_logger := log.create_file_logger(f=nil, lowest=.Debug, opt={ .Level, .Terminal_Color, .Line, .Procedure, - }} + }) + defer log.destroy_file_logger(file_logger) + context.logger = file_logger if !runtime.ODIN_VIRTUAL_MEMORY_SUPPORTED { log.info("Virtual memory is not supported on this platform.")