From 169d40f575076b3fda0b6e016fe2dc5c8d144bdd Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 9 Feb 2018 11:57:07 +0000 Subject: [PATCH] Increase log level for readloop failures, which might help with diagnosis --- debian/changelog | 1 + src/server/client.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index c29ecde..df929fd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,7 @@ flexnbd (0.2.0) UNRELEASED; urgency=medium * Proxy passes all NBD protocol errors through to the client instead of disconnecting and retrying (#36, !40) * Ignore ends of discs that stray outside of 512-byte sector sizes (!42). + * Tweak logging for readloop failures (!44) -- James Carter Thu, 11 Jan 2018 10:05:35 +0000 diff --git a/src/server/client.c b/src/server/client.c index 8ca4d2a..fe8a0a5 100644 --- a/src/server/client.c +++ b/src/server/client.c @@ -228,14 +228,14 @@ int client_read_request( struct client * client , struct nbd_request *out_reques *disconnected = 1; switch( errno ){ case 0: - debug( "EOF while reading request" ); + warn( "EOF while reading request" ); return 0; case ECONNRESET: - debug( "Connection reset while" + warn( "Connection reset while" " reading request" ); return 0; case ETIMEDOUT: - debug( "Connection timed out while" + warn( "Connection timed out while" " reading request" ); return 0; default: