From 084d34fe5c444ebae2f5de5a622816b3607ca7eb Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 24 Apr 2022 15:50:17 +0200 Subject: [PATCH] Set up the logger for the standalone target --- src/wrapper/standalone.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wrapper/standalone.rs b/src/wrapper/standalone.rs index ca9dc439..eeb10509 100644 --- a/src/wrapper/standalone.rs +++ b/src/wrapper/standalone.rs @@ -2,6 +2,7 @@ //! of relying on a plugin host. This is mostly useful for quickly testing GUI changes. use self::wrapper::{Wrapper, WrapperConfig, WrapperError}; +use super::util::setup_logger; use crate::plugin::Plugin; mod backend; @@ -57,6 +58,8 @@ pub fn nih_export_standalone() -> bool { pub fn nih_export_standalone_with_args>( args: Args, ) -> bool { + setup_logger(); + // TODO: Do something with the arguments // FIXME: The configuration should be set based on the command line arguments @@ -74,7 +77,7 @@ pub fn nih_export_standalone_with_args