Fix bug where archiving was no longer run every day

This commit is contained in:
Wolfgang Lux 2017-08-09 14:34:00 +02:00
parent a6a6a78658
commit b67741078b
2 changed files with 13 additions and 7 deletions

View file

@ -1,10 +1,16 @@
2017-08-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* EcProcess.m(ecNewDay:):
Fix bug where archiving was no longer run every day unless some
defaults had been changed locally.
2017-06-23 Richard Frith-Macdonald <rfm@gnu.org>
* EcCommand.m:
* EcControl.m:
* EcProcess.h:
* EcProcess.m:
Replace cmdArchive: with ecArchive: changing trhe log file archiving
Replace cmdArchive: with ecArchive: changing the log file archiving
model to archive files primarily based on their last modification
date. Fixes the bug where files were archived to a folder with the
wrong date on startup, and simplifies archiving code generally.

View file

@ -2343,17 +2343,17 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval);
static NSDictionary *defs = nil;
NSDictionary *d = [cmdDefs volatileDomainForName: @"EcCommand"];
/* Archive previous day's logs. Force logs to be archived for the
* specified date even if they have been modified today (on the basis
* that only the very latest info in them should be from today).
*/
NSLog(@"%@", [self ecArchive: when]);
if (nil != defs)
{
NSEnumerator *e;
NSString *k;
/* Archive previous day's logs. Force logs to be archived for the
* specified date even if they have been modified today (on the basis
* that only the very latest info in them should be from today).
*/
NSLog(@"%@", [self ecArchive: when]);
/* Check information left in the EcCommand domain.
*/
e = [[d allKeys] objectEnumerator];