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


The following commit(s) were added to refs/heads/main by this push:
     new d219efb  ARTEMIS-5432 - Change console log level to ERROR for 
production environment
d219efb is described below

commit d219efb46420fd9a59e4555ab290d7d21be7b619
Author: GChuf <[email protected]>
AuthorDate: Tue Apr 15 11:49:14 2025 +0200

    ARTEMIS-5432 - Change console log level to ERROR for production environment
---
 .../artemis-extension/src/artemis-extension/artemis/globals.ts        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/artemis-console-extension/artemis-extension/src/artemis-extension/artemis/globals.ts
 
b/artemis-console-extension/artemis-extension/src/artemis-extension/artemis/globals.ts
index b90dbf4..1f9af7f 100644
--- 
a/artemis-console-extension/artemis-extension/src/artemis-extension/artemis/globals.ts
+++ 
b/artemis-console-extension/artemis-extension/src/artemis-extension/artemis/globals.ts
@@ -26,10 +26,12 @@ export const artemisJMXPluginName = 'artemisJMX'
 export const artemisJMXPluginTitle = 'Artemis JMX'
 export const artemisJMXPluginPath = '/treeartemisJMX'
 
-export const log = Logger.get(artemisPluginName) 
 export const domainNodeType = 'Camel Domain'
 export const contextsType = 'contexts'
 export const contextNodeType = 'context'
 
 export const endpointNodeType = 'endpointNode'
 
+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