Skip to content

Commit

Permalink
replaces hardcoded string
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev committed Oct 20, 2023
1 parent e709209 commit 4ccbfc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TelegramBotAppender extends AbstractAppender {

protected TelegramBotAppender(String name, Filter filter, Layout<? extends Serializable> layout, boolean ignoreExceptions, Property[] properties) {
super(name, filter, layout, ignoreExceptions, properties);
var applicationContext = new AnnotationConfigApplicationContext("com.github.yvasyliev.bots.telegram.notifier");
var applicationContext = new AnnotationConfigApplicationContext(TelegramNotifier.class.getPackageName());
this.telegramNotifier = applicationContext.getBean(TelegramNotifier.class);
}

Expand Down

0 comments on commit 4ccbfc8

Please sign in to comment.