Author: rfm
Date: Thu Mar 19 22:11:55 2015
New Revision: 38414

URL: http://svn.gna.org/viewcvs/gnustep?rev=38414&view=rev
Log:
Provide more logging accuracy

Modified:
    libs/ec/trunk/ChangeLog
    libs/ec/trunk/EcAlerter.m
    libs/ec/trunk/EcProcess.m

Modified: libs/ec/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/ChangeLog?rev=38414&r1=38413&r2=38414&view=diff
==============================================================================
--- libs/ec/trunk/ChangeLog     (original)
+++ libs/ec/trunk/ChangeLog     Thu Mar 19 22:11:55 2015
@@ -1,3 +1,9 @@
+2015-03-19  Richard Frith-Macdonald <[email protected]>
+
+       * EcProcess.m:
+       * EcAlerter.m:
+       Use milliseconds in logging timestamps.
+
 2015-02-02  Richard Frith-Macdonald <[email protected]>
 
        * EcAlerter.h: Add options for time-limiting rule activity
@@ -19,7 +25,7 @@
 
         * GNUmakefile.preamble: fixup gcc flag filtering
         * EcClientI.h:
-        * EcClientI.m:
+          EcClientI.m:
         * EcCommand.m:
         * EcControl.m:
         * EcProcess.h:

Modified: libs/ec/trunk/EcAlerter.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcAlerter.m?rev=38414&r1=38413&r2=38414&view=diff
==============================================================================
--- libs/ec/trunk/EcAlerter.m   (original)
+++ libs/ec/trunk/EcAlerter.m   Thu Mar 19 22:11:55 2015
@@ -1259,7 +1259,15 @@
            }
          timestamp = [NSCalendarDate
             dateWithString: [str substringToIndex: r.location]
-            calendarFormat: @"%Y-%m-%d %H:%M:%S %z"];
+            calendarFormat: @"%Y-%m-%d %H:%M:%S.%F %z"];
+          if (nil == timestamp)
+            {
+              /* Old style.
+               */
+              timestamp = [NSCalendarDate
+                dateWithString: [str substringToIndex: r.location]
+                calendarFormat: @"%Y-%m-%d %H:%M:%S %z"];
+            }
 
          str = [str substringFromIndex: NSMaxRange(r)];
 

Modified: libs/ec/trunk/EcProcess.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.m?rev=38414&r1=38413&r2=38414&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.m   (original)
+++ libs/ec/trunk/EcProcess.m   Thu Mar 19 22:11:55 2015
@@ -460,7 +460,7 @@
     {
       l = [[cmdDefs dictionaryRepresentation] copy];
     }
-  d = [c descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S %z" locale: l];
+  d = [c descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F %z" locale: l];
   result = [stringClass stringWithFormat: @"%@(%@): %@ %@ - %@\n",
     n, h, d, f, fmt];
   RELEASE(c);


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to