Skip to content

Commit b882de4

Browse files
committed
Replace logger warning with ConnectLib.Logger() in AnnotHandler for improved logging
1 parent 1110a6c commit b882de4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/fr/sandro642/github/annotations/AnnotHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package fr.sandro642.github.annotations;
22

3+
import fr.sandro642.github.ConnectLib;
4+
35
import java.lang.annotation.ElementType;
46
import java.lang.annotation.Retention;
57
import java.lang.annotation.RetentionPolicy;
@@ -99,7 +101,7 @@ private List<Class<?>> getClassesInPackage(String packageName) {
99101
}
100102
}
101103
} catch (Exception e) {
102-
logger.warning("Failed to retrieve classes in package: " + packageName + ". Exception: " + e.getMessage());
104+
ConnectLib.Logger().WARN("Failed to retrieve classes in package: " + packageName + ". Exception: " + e.getMessage());
103105
}
104106
return classes;
105107
}

0 commit comments

Comments
 (0)