Improve diagnostic logging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10637 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-08-02 09:54:36 +00:00
parent 14f0d4d07f
commit d9c02f80ad
2 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2001-08-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPortNameServer.m: Log the host we are connecting to
when we produce a warning for a failure of a link to gdomap.
2001-08-01 Richard Frith-Macdonald <rfm@gnu.org>
* Documentation/gsdoc/Base.gsdoc: Documented all the uses of

View file

@ -167,13 +167,14 @@ typedef enum {
- (void) didConnect: (NSNotification*)notification
{
NSDictionary *userInfo = [notification userInfo];
NSString *e;
NSDictionary *userInfo = [notification userInfo];
NSString *e;
e = [userInfo objectForKey: GSFileHandleNotificationError];
if (e != nil)
{
NSLog(@"NSPortNameServer failed connect to gdomap - %@", e);
NSLog(@"NSPortNameServer failed connect to gdomap on %@- %@",
[[notification object] socketAddress], e);
/*
* Remove our file handle, then either retry or fail.
*/
@ -190,7 +191,7 @@ typedef enum {
repeats: NO];
[loop addTimer: timer forMode: [loop currentMode]];
[loop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 5.0]];
NSLog(@"NSPortNameServer retrying connection attempt to gdomap");
NSLog(@"NSPortNameServer retrying local connection to gdomap");
state = GSPC_RETRY;
[self open: nil];
}
@ -226,7 +227,8 @@ typedef enum {
if (d == nil || [d length] == 0)
{
[self fail];
NSLog(@"NSPortNameServer lost connection to gdomap");
NSLog(@"NSPortNameServer lost connection to gdomap on %@",
[[notification object] socketAddress]);
}
else
{
@ -295,7 +297,8 @@ typedef enum {
if (e != nil)
{
[self fail];
NSLog(@"NSPortNameServer failed write to gdomap - %@", e);
NSLog(@"NSPortNameServer failed write to gdomap on %@ - %@",
[[notification object] socketAddress], e);
}
else
{