Fix log puge

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38480 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-05-07 06:44:22 +00:00
parent 1efeaea3e4
commit 3a32e58eee
3 changed files with 4 additions and 8 deletions

View file

@ -2427,7 +2427,7 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
when = [NSCalendarDate date];
now = [when timeIntervalSinceReferenceDate];
logs = [[self ecUserDirectory] stringByAppendingPathComponent: @"Logs"];
logs = [[self ecUserDirectory] stringByAppendingPathComponent: @"DebugLogs"];
/* When trying to make space, we can delete up to the point when we
* would start compressing but no further ... we don't want to delete

View file

@ -446,7 +446,6 @@ NSString*
cmdLogFormat(EcLogType t, NSString *fmt)
{
static NSString *h = nil;
static NSDictionary *l = nil;
NSCalendarDate *c = [[cDateClass alloc] init];
NSString *f = cmdLogKey(t);
NSString *n = cmdLogName();
@ -457,11 +456,7 @@ cmdLogFormat(EcLogType t, NSString *fmt)
{
h = [[[NSHost currentHost] wellKnownName] copy];
}
if (l == nil)
{
l = [[cmdDefs dictionaryRepresentation] copy];
}
d = [c descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F %z" locale: l];
d = [c descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F %z" locale: nil];
result = [stringClass stringWithFormat: @"%@(%@): %@ %@ - %@\n",
n, h, d, f, fmt];
RELEASE(c);

3
README
View file

@ -16,7 +16,8 @@ Key points ...
1. You may want to use 'defaults write NSGlobalDomain EcvEffectiveUser xxx'
where 'xxx' is your username, to tell the system it should be running as you.
2. Debug files are written in ~xxx/Logs ... look there to diagnose problems.
2. Debug files are written in ~xxx/DebugLogs ...
look there to diagnose problems.
3. Configuration is in ~xxx/Data. Specifically, you need to configure
~xxx/Data/Command/Control.plist, ~xxx/Data/Command/Operators.plist, and