[Patch 7/7] tabled: Improve messages in storage.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mostly, add IDs so we can see which job and which node fails.

Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

---
 server/storage.c |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/server/storage.c b/server/storage.c
index f1822f7..fdb3fc1 100644
--- a/server/storage.c
+++ b/server/storage.c
@@ -102,8 +102,9 @@ int stor_put_start(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	sprintf(stckey, stor_key_fmt, (unsigned long long) key);
 	if (!stc_put_startz(cep->stc, stckey, size, &cep->wfd, 0)) {
 		if (debugging)
-			applog(LOG_INFO, "stor put %s new for %lld error",
-			       stckey, (long long) size);
+			applog(LOG_INFO,
+			       "stor nid %u put %s new for %lld error",
+			       cep->node->id, stckey, (long long) size);
 		return -EIO;
 	}
 	cep->wtogo = size;
@@ -112,8 +113,8 @@ int stor_put_start(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	event_set(&cep->wevt, cep->wfd, EV_WRITE, stor_write_event, cep);
 
 	if (debugging)
-		applog(LOG_INFO, "stor put %s new for %lld",
-		       stckey, (long long) size);
+		applog(LOG_INFO, "stor nid %u put %s new for %lld",
+		       cep->node->id, stckey, (long long) size);
 
 	return 0;
 }
@@ -139,7 +140,8 @@ int stor_open_read(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	sprintf(stckey, stor_key_fmt, (unsigned long long) key);
 	if (!stc_get_startz(cep->stc, stckey, &cep->rfd, &size)) {
 		if (debugging)
-			applog(LOG_INFO, "stor put %s error", stckey);
+			applog(LOG_INFO, "stor nid %u get %s error",
+			       cep->node->id, stckey);
 		return -EIO;
 	}
 	*psize = size;
@@ -149,8 +151,8 @@ int stor_open_read(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	event_set(&cep->revt, cep->rfd, EV_READ, stor_read_event, cep);
 
 	if (debugging)
-		applog(LOG_INFO, "stor get %s size %lld",
-		       stckey, (long long) size);
+		applog(LOG_INFO, "stor nid %u get %s size %lld",
+		       cep->node->id, stckey, (long long) size);
 
 	return 0;
 }
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux