mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-19 10:01:24 +00:00
Fix bug where archiving was no longer run every day
This commit is contained in:
parent
a6a6a78658
commit
b67741078b
2 changed files with 13 additions and 7 deletions
|
@ -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.
|
||||
|
|
12
EcProcess.m
12
EcProcess.m
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue