You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2014/06/02 16:41:10 UTC

git commit: Make the directory structure for exception reports a little bit shallower

Repository: tapestry-5
Updated Branches:
  refs/heads/master a7f700c47 -> 590f14f09


Make the directory structure for exception reports a little bit shallower


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/590f14f0
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/590f14f0
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/590f14f0

Branch: refs/heads/master
Commit: 590f14f097aad4012c24d71f24b12b5e707280aa
Parents: a7f700c
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Mon Jun 2 07:41:19 2014 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Mon Jun 2 07:41:19 2014 -0700

----------------------------------------------------------------------
 .../internal/services/exceptions/ExceptionReporterImpl.java      | 2 +-
 .../apache/tapestry5/services/exceptions/ExceptionReporter.java  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/590f14f0/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/exceptions/ExceptionReporterImpl.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/exceptions/ExceptionReporterImpl.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/exceptions/ExceptionReporterImpl.java
index f3dd3c5..7afc773 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/exceptions/ExceptionReporterImpl.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/exceptions/ExceptionReporterImpl.java
@@ -83,7 +83,7 @@ public class ExceptionReporterImpl implements ExceptionReporter
     public void reportException(Throwable exception)
     {
         Date date = new Date();
-        String folderName = String.format("%tY/%<tm/%<td/%<tH/%<tM", date);
+        String folderName = String.format("%tY-%<tm-%<td/%<tH/%<tM", date);
         String fileName = String.format(
                 "exception-%tY%<tm%<td-%<tH%<tM%<tS-%<tL.%d.txt", date,
                 uid.getAndIncrement());

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/590f14f0/tapestry-core/src/main/java/org/apache/tapestry5/services/exceptions/ExceptionReporter.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/services/exceptions/ExceptionReporter.java b/tapestry-core/src/main/java/org/apache/tapestry5/services/exceptions/ExceptionReporter.java
index 97a94ec..3ffd92b 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/services/exceptions/ExceptionReporter.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/services/exceptions/ExceptionReporter.java
@@ -17,9 +17,9 @@ package org.apache.tapestry5.services.exceptions;
  * The default implementation converts the exception into a well formatted text file, with content similar to the default
  * {@link org.apache.tapestry5.corelib.pages.ExceptionReport} page, and stores this file on the file system.
  * <p/>
- * Exception report files are stored beneath a root directory, with intermediate folders for year, month, day, hour, and minute.
+ * Exception report files are stored beneath a root directory, with intermediate folders for the day (e.g., "2014-06-02"), hour, and minute.
  * <p/>
- * Directories are created as necessary; however, there is nothing in place to delete exceptions.
+ * Directories are created as necessary; however, there is nothing in place to delete these exceptions reports.
  *
  * @see org.apache.tapestry5.SymbolConstants#EXCEPTION_REPORTS_DIR
  * @since 5.4