diff --git a/lib/protocol.js b/lib/protocol.js
index 9a67b8c..0958be1 100644
--- a/lib/protocol.js
+++ b/lib/protocol.js
@@ -776,6 +776,7 @@ function readEntityMetadata(buffer, offset) {
     key = item & 0x1f;
     type = item >> 5;
     typeName = entityMetadataTypes[type];
+    debug("Reading entity metadata type " + type + " (" + ( typeName || "unknown" ) + ")");
     if (!typeName) {
       return {
         error: new Error("unrecognized entity metadata type " + type)