From 15ee5141c2734b7799daf544f623dda21d33159a Mon Sep 17 00:00:00 2001 From: hop311 Date: Sat, 10 Aug 2024 23:36:18 +0100 Subject: Fix invalidated file pointer in logger --- src/openvic-dataloader/DiagnosticLogger.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/openvic-dataloader/DiagnosticLogger.hpp') diff --git a/src/openvic-dataloader/DiagnosticLogger.hpp b/src/openvic-dataloader/DiagnosticLogger.hpp index 479a7a0..4c3a776 100644 --- a/src/openvic-dataloader/DiagnosticLogger.hpp +++ b/src/openvic-dataloader/DiagnosticLogger.hpp @@ -226,6 +226,10 @@ namespace ovdl { _tree.set_root(_tree.create()); } + void set_file(const file_type& file) { + _file = &file; + } + struct Writer; template -- cgit v1.2.3-56-ga3b1