Skip to content

Commit 2ceefb7

Browse files
committed
Increase the output width of application running status and plugin list information tables
Closes gh-947
1 parent 0cd7130 commit 2ceefb7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

grace-boot/src/main/groovy/org/grails/boot/context/GrailsRunningStatusApplicationContextInitializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2024 the original author or authors.
2+
* Copyright 2022-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -97,13 +97,13 @@ protected void printRunStatus(SpringApplication springApplication, ConfigurableA
9797
log.warn("The host name could not be determined, using `localhost` as fallback");
9898
}
9999
String sb =
100-
"%n----------------------------------------------------------------------------------------------" +
100+
"%n----------------------------------------------------------------------------------------------------------" +
101101
"%n Application: %s" +
102102
"%n Version: %s" +
103103
"%n Environment: %s" +
104104
"%n Local: %s://%s:%s%s" +
105105
"%n External: %s://%s:%s%s" +
106-
"%n----------------------------------------------------------------------------------------------" + "%n";
106+
"%n----------------------------------------------------------------------------------------------------------" + "%n";
107107
log.debug(
108108
String.format(sb,
109109
applicationName,

grace-plugin-api/src/main/groovy/org/grails/plugins/support/GrailsPluginsInfoApplicationContextInitializer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021-2024 the original author or authors.
2+
* Copyright 2021-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -62,19 +62,19 @@ public void onApplicationEvent(ApplicationStartedEvent event) {
6262
}
6363

6464
StringBuilder sb = new StringBuilder();
65-
sb.append("%n----------------------------------------------------------------------------------------------%n");
66-
sb.append("Order Plugin Name Plugin Version Enabled");
67-
sb.append("%n----------------------------------------------------------------------------------------------");
65+
sb.append("%n----------------------------------------------------------------------------------------------------------%n");
66+
sb.append("Order Plugin Name Plugin Version Enabled");
67+
sb.append("%n----------------------------------------------------------------------------------------------------------");
6868
for (int i = 0; i < allPlugins.size(); i++) {
6969
GrailsPlugin plugin = allPlugins.get(i);
7070
boolean enabled = plugin.isEnabled() && (pluginManager.getFailedPlugin(plugin.getName()) == null);
7171
sb.append(String.format("%n%s %s%s%s",
7272
StringUtils.leftPad(String.valueOf(i + 1), 5),
73-
StringUtils.rightPad(StringUtils.capitalize(plugin.getName()), 41),
74-
StringUtils.rightPad(plugin.getVersion(), 41),
73+
StringUtils.rightPad(StringUtils.capitalize(plugin.getName()), 35),
74+
StringUtils.rightPad(plugin.getVersion(), 59),
7575
enabled ? "Y" : "N"));
7676
}
77-
sb.append("%n----------------------------------------------------------------------------------------------%n");
77+
sb.append("%n----------------------------------------------------------------------------------------------------------%n");
7878

7979
if (logger.isDebugEnabled()) {
8080
logger.debug(String.format(sb.toString()));

0 commit comments

Comments
 (0)