[java-identity-provider] branch main updated: IDP-1933 - Add some emphasis to the installer output of warn+ messages.

Scott Cantor cantor.2 at osu.edu
Wed Apr 6 12:10:47 UTC 2022


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=b34d80ea49e877bcaa1f812228315a5e0ed518f9

The following commit(s) were added to refs/heads/main by this push:
     new b34d80ea4 IDP-1933 - Add some emphasis to the installer output of warn+ messages.
b34d80ea4 is described below

commit b34d80ea49e877bcaa1f812228315a5e0ed518f9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Apr 6 08:10:44 2022 -0400

    IDP-1933 - Add some emphasis to the installer output of warn+ messages.
    
    https://shibboleth.atlassian.net/browse/IDP-1933
    
    Add additional output to the other two format methods.
---
 .../java/net/shibboleth/idp/installer/impl/InstallationLogger.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/InstallationLogger.java b/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/InstallationLogger.java
index 7cb7fe232..b92c448ff 100644
--- a/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/InstallationLogger.java
+++ b/idp-installer/src/main/java/net/shibboleth/idp/installer/impl/InstallationLogger.java
@@ -74,6 +74,9 @@ public final class InstallationLogger implements Logger {
      * @param arg2 the second argument
      */
     private void format(@Nullable final Level level, final String format, final Object arg1, final Object arg2) {
+        if (level != null) {
+            System.out.print(level.toString() + "  - ");
+        }
         System.out.format(pat.matcher(format).replaceAll("%s"), arg1, arg2);
         System.out.println();
     }
@@ -86,6 +89,9 @@ public final class InstallationLogger implements Logger {
      * @param arguments the arguments
      */
     private void format(@Nullable final Level level, final String format, final Object... arguments) {
+        if (level != null) {
+            System.out.print(level.toString() + "  - ");
+        }
         System.out.format(pat.matcher(format).replaceAll("%s"), arguments);
         System.out.println();
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list