Skip to content

Commit

Permalink
correct the info logs print by demo plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
popduke committed Apr 25, 2024
1 parent 1a65132 commit e3c5cb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public DemoAuthProvider() {
IAuthProvider delegate1;
String webhookUrl = System.getProperty(PLUGIN_AUTHPROVIDER_URL);
if (webhookUrl == null) {
log.info("No webhook url specified, fallback to no auth.");
log.info("No webhook url specified, the fallback behavior will reject all auth/check requests.");
delegate1 = new FallbackAuthProvider();
} else {
try {
URI webhookURI = URI.create(webhookUrl);
delegate1 = new WebHookBasedAuthProvider(webhookURI);
log.info("Resource will be throttled at runtime by consulting: {}", webhookUrl);
log.info("DemoAuthProvider's webhook URL: {}", webhookUrl);
} catch (Throwable e) {
delegate1 = new FallbackAuthProvider();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public DemoResourceThrottler() {
try {
URI webhookURI = URI.create(webhookUrl);
delegate1 = new WebHookBasedResourceThrottler(webhookURI);
log.info("Resource will be throttled at runtime by consulting: {}", webhookUrl);
log.info("DemoResourceThrottler's webhook URL: {}", webhookUrl);
} catch (Throwable e) {
delegate1 = (tenantId, type) -> true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public <R> R provide(Setting setting, String tenantId) {
try {
URI webhookURI = URI.create(webhookUrl);
delegate1 = new WebHookBasedSettingProvider(webhookURI);
log.info("Resource will be throttled at runtime by consulting: {}", webhookUrl);
log.info("DemoSettingProvider's webhook URL: {}", webhookUrl);
} catch (Throwable e) {
delegate1 = new ISettingProvider() {
@Override
Expand Down

0 comments on commit e3c5cb4

Please sign in to comment.