Skip to content

Commit

Permalink
KNOX-2642. Incorrect message format indexes (apache#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroflag authored Aug 18, 2021
1 parent eecf3ca commit 70f4800
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ void failedToLoadClusterMonitorConfigVersions(String monitor,
void errorAccessingConfigurationChangeMonitor(@StackTrace(level = MessageLevel.DEBUG) Exception e);

@Message(level = MessageLevel.ERROR,
text = "Failed to load service discovery URL definition configuration: {1}")
text = "Failed to load service discovery URL definition configuration: {0}")
void failedToLoadServiceDiscoveryURLDefConfiguration(@StackTrace(level = MessageLevel.DEBUG) Exception e);

@Message(level = MessageLevel.ERROR,
text = "Failed to load ZooKeeper configuration property mappings: {1}")
text = "Failed to load ZooKeeper configuration property mappings: {0}")
void failedToLoadZooKeeperConfigurationMapping(@StackTrace(level = MessageLevel.DEBUG) Exception e);

@Message(level = MessageLevel.ERROR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public interface KnoxShiroMessages {
@Message(level = MessageLevel.INFO, text = "Could not login: {0}")
void failedLoginInfo(AuthenticationToken token);

@Message( level = MessageLevel.DEBUG, text = "Failed to Authenticate with LDAP server: {1}" )
@Message( level = MessageLevel.DEBUG, text = "Failed to Authenticate with LDAP server: {0}" )
void failedLoginStackTrace( @StackTrace( level = MessageLevel.DEBUG ) Exception e );

@Message(level = MessageLevel.INFO, text = "Successfully logged in: {0}, {1}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@ void errorRespondingToConfigChange(String source,
@Message( level = MessageLevel.ERROR, text = "The path to the keystore is not accessible: {0}" )
void keystoreFileIsNotAccessible(String path);

@Message( level = MessageLevel.ERROR, text = "Failed to add credential: {1}" )
void failedToAddCredential( @StackTrace( level = MessageLevel.DEBUG ) Exception e );

@Message(level = MessageLevel.ERROR, text = "Failed to remove credential: {1}")
void failedToRemoveCredential(@StackTrace(level = MessageLevel.DEBUG) Exception e);

@Message(level = MessageLevel.INFO, text = "Starting service: {0}")
void startingService(String serviceTypeName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public interface TokenStateServiceMessages {
@Message(level = MessageLevel.DEBUG, text = "{0} expired tokens have been removed from the database")
void removedTokensFromDatabase(int size);

@Message(level = MessageLevel.ERROR, text = "An error occurred while removing expired tokens from the database : {1}")
@Message(level = MessageLevel.ERROR, text = "An error occurred while removing expired tokens from the database : {0}")
void errorRemovingTokensFromDatabase(String errorMessage, @StackTrace(level = MessageLevel.DEBUG) Exception e);

@Message(level = MessageLevel.DEBUG, text = "Fetched issue time for {0} from the database : {1}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@Messages(logger = "org.apache.knox.gateway.service.metadata")
public interface MetadataServiceMessages {

@Message(level = MessageLevel.ERROR, text = "Failed to fetch public certificate: {1}")
@Message(level = MessageLevel.ERROR, text = "Failed to fetch public certificate: {0}")
void failedToFetchPublicCert(String errorMessage, @StackTrace(level = MessageLevel.DEBUG) Exception e);

@Message(level = MessageLevel.ERROR, text = "Failed to generate public certificate {0}: {1}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface AdvanceServiceDiscoveryConfigurationMessages {
@Message(level = MessageLevel.INFO, text = "Monitoring advanced service discovery configuration changes is disabled.")
void disableMonitoring();

@Message(level = MessageLevel.ERROR, text = "Error while monitoring CM advanced configuration: {1}")
@Message(level = MessageLevel.ERROR, text = "Error while monitoring CM advanced configuration: {0}")
void failedToMonitorClouderaManagerAdvancedConfiguration(String errorMessage, @StackTrace(level = MessageLevel.DEBUG) Exception e);

@Message(level = MessageLevel.INFO, text = "Notifying listeners due to advanced service discovery configuration changes in {0}...")
Expand Down

0 comments on commit 70f4800

Please sign in to comment.