From 493d3c226fb07aa126d7a36cb1aea79097dbced3 Mon Sep 17 00:00:00 2001 From: ehouse Date: Thu, 20 Aug 2009 12:12:43 +0000 Subject: [PATCH] log when crash --- xwords4/relay/ctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/relay/ctrl.cpp b/xwords4/relay/ctrl.cpp index 22ea7442e..f0823b13f 100644 --- a/xwords4/relay/ctrl.cpp +++ b/xwords4/relay/ctrl.cpp @@ -386,6 +386,7 @@ cmd_crash( int socket, const char** args ) "* %s -- fires an assert (debug case) or divides-by-zero", args[0] ); } else { + logf( XW_LOGERROR, "crashing..." ); assert(0); int ii = 1; while ( ii > 0 ) --ii; @@ -589,7 +590,7 @@ ctrl_thread_main( void* arg ) void run_ctrl_thread( int ctrl_sock ) { - logf( XW_LOGINFO, "calling accept on socket %d\n", ctrl_sock ); + logf( XW_LOGINFO, "calling accept on socket %d", ctrl_sock ); sockaddr newaddr; socklen_t siz = sizeof(newaddr);