mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
Fix @CustomLog-key in lombok.config for some error messages. Issue #2821
This commit is contained in:
1 parent
6758714ed5
commit
a2a4ea7275
2 files changed
+2
-2
No files matched your search
@@ -302,7 +302,7 @@ public class HandleLog {
|
||||
handleFlagUsage(annotationNode, ConfigurationKeys.LOG_CUSTOM_FLAG_USAGE, "@CustomLog", ConfigurationKeys.LOG_ANY_FLAG_USAGE, "any @Log");
|
||||
LogDeclaration logDeclaration = annotationNode.getAst().readConfiguration(ConfigurationKeys.LOG_CUSTOM_DECLARATION);
|
||||
if (logDeclaration == null) {
|
||||
annotationNode.addError("The @CustomLog annotation is not configured; please set log.custom.declaration in lombok.config.");
|
||||
annotationNode.addError("The @CustomLog annotation is not configured; please set lombok.log.custom.declaration in lombok.config.");
|
||||
return;
|
||||
}
|
||||
LoggingFramework framework = new LoggingFramework(lombok.CustomLog.class, logDeclaration);
|
||||
|
||||
@@ -260,7 +260,7 @@ public class HandleLog {
|
||||
handleFlagUsage(annotationNode, ConfigurationKeys.LOG_CUSTOM_FLAG_USAGE, "@CustomLog", ConfigurationKeys.LOG_ANY_FLAG_USAGE, "any @Log");
|
||||
LogDeclaration logDeclaration = annotationNode.getAst().readConfiguration(ConfigurationKeys.LOG_CUSTOM_DECLARATION);
|
||||
if (logDeclaration == null) {
|
||||
annotationNode.addError("The @CustomLog is not configured; please set log.custom.declaration in lombok.config.");
|
||||
annotationNode.addError("The @CustomLog is not configured; please set lombok.log.custom.declaration in lombok.config.");
|
||||
return;
|
||||
}
|
||||
LoggingFramework framework = new LoggingFramework(lombok.CustomLog.class, logDeclaration);
|
||||
|
||||
Reference in new issue
Block a user