update message log and strings file

This commit is contained in:
Mitchell Livingston 2007-12-08 20:17:25 +00:00
parent eb569eecc1
commit a2933ec175
2 changed files with 3 additions and 6 deletions

View File

@ -330,12 +330,9 @@
level = @"";
}
NSString * fileString, * file = [message objectForKey: @"File"];
if ((file = [message objectForKey: @"File"]))
fileString = [NSString stringWithFormat: @" %@:%d", [message objectForKey: @"File"],
[[message objectForKey: @"Line"] intValue]];
else
fileString = @"";
NSString * file = [message objectForKey: @"File"],
* fileString = file ? [NSString stringWithFormat: @" %@:%@", [message objectForKey: @"File"], [message objectForKey: @"Line"]]
: @"";
return [NSString stringWithFormat: @"%@%@ [%@] %@", [message objectForKey: @"Date"], fileString, level,
[message objectForKey: @"Message"]];