Skip to content
Snippets Groups Projects
Commit 6c07918d authored by George Nachman's avatar George Nachman
Browse files

Make the orphan server adopter log to the debug log, not the console

parent dee788f6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,6 +7,8 @@
//
 
#import "iTermOrphanServerAdopter.h"
#import "DebugLogging.h"
#import "iTermAdvancedSettingsModel.h"
#import "iTermController.h"
#import "iTermFileDescriptorSocketPath.h"
Loading
Loading
@@ -70,16 +72,16 @@
}
 
- (void)adoptOrphanWithPath:(NSString *)filename {
NSLog(@"Try to connect to orphaned server at %@", filename);
DLog(@"Try to connect to orphaned server at %@", filename);
pid_t pid = iTermFileDescriptorProcessIdFromPath(filename.UTF8String);
if (pid < 0) {
NSLog(@"Invalid pid in filename %@", filename);
DLog(@"Invalid pid in filename %@", filename);
return;
}
 
iTermFileDescriptorServerConnection serverConnection = iTermFileDescriptorClientRun(pid);
if (serverConnection.ok) {
NSLog(@"Restore it");
DLog(@"Restore it");
if (_window) {
[self openOrphanedSession:serverConnection inWindow:_window];
} else {
Loading
Loading
@@ -87,7 +89,7 @@
_window = [[iTermController sharedInstance] terminalWithSession:session];
}
} else {
NSLog(@"Failed: %s", serverConnection.error);
DLog(@"Failed: %s", serverConnection.error);
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment