From 37ac29e65e81ae30d77fe329bcd4559e981c8ef1 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 3 Nov 2019 09:34:18 +0000 Subject: [PATCH] always log hash failure --- xwords4/common/server.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xwords4/common/server.c b/xwords4/common/server.c index d67124ef2..96c75ba42 100644 --- a/xwords4/common/server.c +++ b/xwords4/common/server.c @@ -2194,14 +2194,13 @@ readMoveInfo( ServerCtxt* server, XWStreamCtxt* stream, if ( !success ) { success = model_popToHash( server->vol.model, hashReceived, server->pool ); } -#ifdef DEBUG_HASHING - if ( success ) { - XP_LOGF( "%s: hash match: %X",__func__, hashReceived ); - } else { + if ( !success ) { XP_LOGF( "%s: hash mismatch: %X not found",__func__, hashReceived ); - } - // XP_ASSERT( success ); /* I need to understand when this can fail */ +#ifdef DEBUG_HASHING + } else { + XP_LOGF( "%s: hash match: %X",__func__, hashReceived ); #endif + } } #endif if ( success ) {