This is an automated email from the ASF dual-hosted git repository.

andytaylor pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git

commit fb13ca4d56960ca4f0372cc5b99404b8f59fe2ba
Author: Grzegorz Grzybek <[email protected]>
AuthorDate: Tue Nov 4 12:09:56 2025 +0100

    ARTEMIS-5726: Do not reset user-configured log level
---
 .../packages/artemis-console-plugin/src/globals.ts               | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/globals.ts
 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/globals.ts
index cf4e856..fc93328 100644
--- 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/globals.ts
+++ 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/globals.ts
@@ -33,6 +33,11 @@ export const contextNodeType = 'context'
 
 export const endpointNodeType = 'endpointNode'
 
-const isProd = process.env.NODE_ENV === 'production'
-Logger.setLevel(isProd ? 'ERROR' : 'INFO')
+if (localStorage) {
+  if (!localStorage.getItem('core.logging.logLevel')) {
+    // set only if not configured by user in Hawtio
+    const isProd = process.env.NODE_ENV === 'production'
+    Logger.setLevel(isProd ? 'ERROR' : 'INFO')
+  }
+}
 export const log = Logger.get(artemisPluginName)
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to