adium 3555:53bf60073071: Record the adium version and build revi...

commits at adium.im commits at adium.im
Fri Nov 19 07:44:27 UTC 2010


details:	http://hg.adium.im/adium/rev/53bf60073071
revision:	3555:53bf60073071
author:		Stephen Holt <sholt at adium.im>
date:		Thu Nov 18 23:44:18 2010 -0800

Record the adium version and build revision id in adium logs to help debug malformed log issues.

diffs (18 lines):

diff -r 77be2b0e69e0 -r 53bf60073071 Source/AILoggerPlugin.m
--- a/Source/AILoggerPlugin.m	Thu Nov 18 11:00:00 2010 +0100
+++ b/Source/AILoggerPlugin.m	Thu Nov 18 23:44:18 2010 -0800
@@ -786,11 +786,13 @@
 
 		AIXMLElement *rootElement = [[[AIXMLElement alloc] initWithName:@"chat"] autorelease];
 		
-		[rootElement setAttributeNames:[NSArray arrayWithObjects:@"xmlns", @"account", @"service", nil]
+		[rootElement setAttributeNames:[NSArray arrayWithObjects:@"xmlns", @"account", @"service", @"adiumversion", @"buildid", nil]
 								values:[NSArray arrayWithObjects:
 										XML_LOGGING_NAMESPACE,
 										chat.account.UID,
 										chat.account.service.serviceID,
+										[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"],
+										[[NSBundle mainBundle] objectForInfoDictionaryKey:@"AIBuildIdentifier"],
 										nil]];
 		
 		appender = [AIXMLAppender documentWithPath:fullPath rootElement:rootElement];




More information about the commits mailing list