From 1e579c51a0a27ee417eeed5694f4f4f9fb9454a0 Mon Sep 17 00:00:00 2001 From: Philip Manke Date: Wed, 17 Apr 2024 13:54:58 +0200 Subject: [PATCH] Add global_loglevel to General::init() --- interface/cuvis.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/cuvis.hpp b/interface/cuvis.hpp index 3a4b54b..e83bbb7 100644 --- a/interface/cuvis.hpp +++ b/interface/cuvis.hpp @@ -692,7 +692,7 @@ namespace cuvis /** * @copydoc cuvis_init */ - static void init(std::string const& settings_path); + static void init(std::string const& settings_path, int global_loglevel = 4); /** * @copydoc cuvis_register_event_callback */ @@ -2387,9 +2387,9 @@ namespace cuvis return std::string(version); } - inline void General::init(std::string const& settings_path) + inline void General::init(std::string const& settings_path, int global_loglevel) { - chk(cuvis_init(settings_path.c_str())); + chk(cuvis_init(settings_path.c_str(), global_loglevel)); return; }