db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1024528 - in /db/derby/code/trunk/java/engine/org/apache/derby: impl/services/monitor/BaseMonitor.java loc/messages.xml
Date Wed, 20 Oct 2010 05:44:52 GMT
Author: mamta
Date: Wed Oct 20 05:44:52 2010
New Revision: 1024528

URL: http://svn.apache.org/viewvc?rev=1024528&view=rev
Log:
DERBY-4601 Shutting down just a single database should log a different message than shutting
down the system

Make the shutdown message in the log file more readable.


Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
    db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java?rev=1024528&r1=1024527&r2=1024528&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
Wed Oct 20 05:44:52 2010
@@ -75,6 +75,7 @@ import java.io.ByteArrayInputStream;
 import java.io.PrintStream;
 
 import java.util.Collections;
+import java.util.Date;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Properties;
@@ -168,10 +169,8 @@ abstract class BaseMonitor
 		}
  
 		Monitor.getStream().println(LINE);
-		long shutdownTime = System.currentTimeMillis();
 		//Make a note of Engine shutdown in the log file
-		Monitor.getStream().printlnWithHeader("\n" +
-				COLON +
+		Monitor.getStream().println(new Date() + 
                 MessageService.getTextMessage(
                     MessageId.CONN_SHUT_DOWN_ENGINE));
 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml?rev=1024528&r1=1024527&r2=1024528&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml Wed Oct 20 05:44:52
2010
@@ -7635,7 +7635,7 @@ Shutting down instance {0} on database d
 
             <msg>
                 <name>J003</name>
-                <text>Shutting down Derby Engine</text>
+                <text>:Shutting down Derby Engine</text>
             </msg>
 
             <msg>



Mime
View raw message