Commits

Tuukka Norri committed f35443a

Added logging to see why unit tests don't pass on Buildbot machine

Comments (0)

Files changed (5)

Sources/BXDatabaseContext.m

 	mDidDisconnect = NO;
 	if ([self checkDatabaseURI: &localError])
 	{
+		NSLog (@"Checking whether to connect.");
 		if (NO == [self isConnected])
 		{
+			NSLog (@"Making database interface connect.");
 			[self lazyInit];
 			[mDatabaseInterface connectAsync];
 		}

Sources/BXPGInterface.m

 - (void) connectAsync
 {
 	[self prepareForConnecting];
+	NSLog (@"Making transaction handler connect.");
 	[mTransactionHandler connectAsync];
 }
 

Sources/BXPGManualCommitTransactionHandler.m

 	mAsync = YES;
 	
 	NSDictionary* connectionDictionary = [self connectionDictionary];
+	NSLog (@"Making main connection connect.");
 	[mConnection connectAsync: connectionDictionary];
+	NSLog (@"Making notification connection connect.");
 	[mNotifyConnection connectAsync: connectionDictionary];
 }
 

Sources/PGTSConnection.mm

 	[connector setDelegate: self];
 	[connector setTraceFile: [mDelegate PGTSConnectionTraceFile: self]];
 	[[PGTSConnectionMonitor sharedInstance] monitorConnection: self];
+	NSLog (@"Making %@ connect.", [connector class]);
 	return [connector connect: connectionDictionary];
 }
 

Sources/PGTSConnector.m

 
 - (void) finishedConnecting: (BOOL) status
 {
+	NSLog (@"Finished connecting (%d).", status);
+	
 	if (status)
 	{
 		//Resign ownership. mConnection needs to be set to NULL before calling delegate method.
 	//If the resolution succeeded, iterate addresses and try to connect to each. Stop when a server gets reached.
 	
 	BOOL reachedServer = NO;
+	NSLog (@"Continuing from name resolution.");
 	
 	if (streamError && streamError->domain)
 	{
 
 - (void) socketReady: (CFSocketCallBackType) callBackType
 {
+	NSLog (@"Socket got ready.");
+	
 	//Sometimes the wrong callback type gets called. We cope with this
 	//by checking against an expected type and re-enabling it if needed.
 	if (callBackType != mExpectedCallBack)
 		status = CFHostSetClient (mHost, &HostReady, &ctx);
 		CFHostScheduleWithRunLoop (mHost, runloop, kCFRunLoopCommonModes);
 		
+		NSLog (@"Starting host info resolution.");
 		if (! CFHostStartInfoResolution (mHost, kCFHostAddresses, &mHostError))
 			[self continueFromNameResolution: &mHostError];
 	}
 
 - (void) negotiateConnection
 {
+	NSLog (@"Beginning negotiation.");
+	
 	if (mTraceFile)
 		PQtrace (mConnection, mTraceFile);
 	
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.