aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-23 02:03:29 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-23 02:03:29 +1000
commit86b702353604b4239a0daec0d7701182fc7f4c25 (patch)
tree3fd8ca48b9b6bc8e51ac52cd0c2f3f59dda505df /env_universal_common.c
parent287ab597cafbbaca05af3c84c39cf577cb9b2604 (diff)
Decrease priority of fishd debug message
darcs-hash:20061022160329-ac50b-5f35fe90f6be184f02fc6514fc6047b25e4f93c3.gz
Diffstat (limited to 'env_universal_common.c')
-rw-r--r--env_universal_common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/env_universal_common.c b/env_universal_common.c
index caa0e5ce..ab0ac496 100644
--- a/env_universal_common.c
+++ b/env_universal_common.c
@@ -361,7 +361,8 @@ void read_message( connection_t *src )
case ENV_UNIVERSAL_ERROR:
{
debug( 2, L"Read error on fd %d, set killme flag", src->fd );
- wperror( L"read" );
+ if( debug_level > 2 )
+ wperror( L"read" );
src->killme = 1;
return;
}
@@ -579,10 +580,11 @@ static int try_send( message_t *msg,
return 0;
default:
- debug( 0,
+ debug( 2,
L"Error while sending universal variable message to fd %d. Closing connection",
fd );
- wperror( L"write" );
+ if( debug_level > 2 )
+ wperror( L"write" );
return -1;
}