You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2019/05/14 12:46:30 UTC
[myfaces] branch master updated: optimized log message
This is an automated email from the ASF dual-hosted git repository.
tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/master by this push:
new a6dd724 optimized log message
a6dd724 is described below
commit a6dd72415a92e8a7995d38925aa30d388692302e
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Tue May 14 14:46:23 2019 +0200
optimized log message
---
.../apache/myfaces/webapp/AbstractFacesInitializer.java | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java b/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java
index e8cbc60..be0aec6 100644
--- a/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java
+++ b/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java
@@ -246,8 +246,8 @@ public abstract class AbstractFacesInitializer implements FacesInitializer
{
ProjectStage projectStage = facesContext.getApplication().getProjectStage();
StringBuilder message = new StringBuilder("\n\n");
- message.append("*******************************************************************\n");
- message.append("*** WARNING: Apache MyFaces-2 is running in ");
+ message.append("********************************************************************\n");
+ message.append("*** WARNING: Apache MyFaces Core is running in ");
message.append(projectStage.name().toUpperCase());
message.append(" mode.");
int length = projectStage.name().length();
@@ -255,20 +255,21 @@ public abstract class AbstractFacesInitializer implements FacesInitializer
{
message.append(' ');
}
- message.append(" ***\n");
- message.append("*** ");
+ message.append(" ***\n");
+ message.append("*** ");
for (int i = 0; i < length; i++)
{
message.append('^');
}
- for (int i = 0; i < 20 - length; i++)
+ for (int i = 0; i < 18 - length; i++)
{
message.append(' ');
}
message.append("***\n");
- message.append("*** Do NOT deploy to your live server(s) without changing this. ***\n");
- message.append("*** See Application#getProjectStage() for more information. ***\n");
- message.append("*******************************************************************\n");
+ message.append("*** Do NOT deploy to your live server(s) without changing this. ***\n");
+ message.append("*** See Application#getProjectStage() for more information. ***\n");
+ message.append("********************************************************************\n");
+ message.append("\n");
log.log(Level.WARNING, message.toString());
}