From acaac8faed7bd88b6f66766621d28b147a03a8bf Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Mon, 20 May 2024 22:03:47 +0200 Subject: [PATCH] changing trace from debug too much noise --- .../boxlang/runtime/loader/DynamicClassLoader.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/ortus/boxlang/runtime/loader/DynamicClassLoader.java b/src/main/java/ortus/boxlang/runtime/loader/DynamicClassLoader.java index d54c6d485..f708501d5 100644 --- a/src/main/java/ortus/boxlang/runtime/loader/DynamicClassLoader.java +++ b/src/main/java/ortus/boxlang/runtime/loader/DynamicClassLoader.java @@ -136,18 +136,18 @@ public Class findClass( String className, Boolean safe ) throws ClassNotFound safe = false; } - logger.debug( "[{}] Discovering class: [{}]", this.nameAsKey.getName(), className ); + logger.trace( "[{}] Discovering class: [{}]", this.nameAsKey.getName(), className ); // 1. Check the loaded cache first and return if found Class cachedClass = this.loadedClasses.get( className ); if ( cachedClass != null ) { - logger.debug( "[{}].[{}] : Class found in cache", this.nameAsKey.getName(), className ); + logger.trace( "[{}].[{}] : Class found in cache", this.nameAsKey.getName(), className ); return cachedClass; } // 2. Check the unfound cache, and if already there, return just null or throw an exception depending on the safe flag if ( this.unfoundClasses.containsKey( className ) ) { - logger.debug( "[{}].[{}] : Class not found in cache, but already in unfound cache", this.nameAsKey.getName(), className ); + logger.trace( "[{}].[{}] : Class not found in cache, but already in unfound cache", this.nameAsKey.getName(), className ); if ( safe ) { return null; } @@ -157,14 +157,14 @@ public Class findClass( String className, Boolean safe ) throws ClassNotFound // 3. Attempt to load from JARs/classes in the seeded URLs try { cachedClass = super.findClass( className ); - logger.debug( "[{}].[{}] : Class found locally", this.nameAsKey.getName(), className ); + logger.trace( "[{}].[{}] : Class found locally", this.nameAsKey.getName(), className ); } catch ( ClassNotFoundException e ) { // 3. If not found in JARs, delegate to parent class loader try { - logger.debug( "[{}].[{}] : Class not found locally, trying the parent...", this.nameAsKey.getName(), className ); + logger.trace( "[{}].[{}] : Class not found locally, trying the parent...", this.nameAsKey.getName(), className ); cachedClass = getDynamicParent().loadClass( className ); - logger.debug( "[{}].[{}] : Class found in parent", this.nameAsKey.getName(), className ); + logger.trace( "[{}].[{}] : Class found in parent", this.nameAsKey.getName(), className ); } catch ( ClassNotFoundException parentException ) { // Add to the unfound cache this.unfoundClasses.put( className, NullValue.class ); @@ -172,7 +172,7 @@ public Class findClass( String className, Boolean safe ) throws ClassNotFound if ( !safe ) { throw new ClassNotFoundException( String.format( "Class [%s] not found in class loader [%s]", className, this.nameAsKey.getName() ) ); } - logger.debug( "[{}].[{}] : Class not found in parent", this.nameAsKey.getName(), className ); + logger.trace( "[{}].[{}] : Class not found in parent", this.nameAsKey.getName(), className ); } }