From 29d1145663b296a94b5b758a6dcb8a1bc3a13a6c Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Wed, 17 Nov 2010 02:01:25 +0100 Subject: [PATCH] server shouldn't write detailed debugging file any more --- servatrice/src/main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/servatrice/src/main.cpp b/servatrice/src/main.cpp index 386e82fd..93a4ae1f 100644 --- a/servatrice/src/main.cpp +++ b/servatrice/src/main.cpp @@ -26,14 +26,14 @@ RNG_Abstract *rng; -void myMessageOutput(QtMsgType /*type*/, const char *msg) -{ - static FILE *f = NULL; - if (!f) - f = fopen("qdebug.txt", "w"); - fprintf(f, "%s\n", msg); - fflush(f); -} +//void myMessageOutput(QtMsgType /*type*/, const char *msg) +//{ +// static FILE *f = NULL; +// if (!f) +// f = fopen("qdebug.txt", "w"); +// fprintf(f, "%s\n", msg); +// fflush(f); +//} void testRNG() { @@ -71,7 +71,7 @@ void testRNG() int main(int argc, char *argv[]) { - qInstallMsgHandler(myMessageOutput); +// qInstallMsgHandler(myMessageOutput); QCoreApplication app(argc, argv); app.setOrganizationName("Cockatrice");