server shouldn't write detailed debugging file any more

This commit is contained in:
Max-Wilhelm Bruker 2010-11-17 02:01:25 +01:00
parent 754c67fd7c
commit 29d1145663

View file

@ -26,14 +26,14 @@
RNG_Abstract *rng; RNG_Abstract *rng;
void myMessageOutput(QtMsgType /*type*/, const char *msg) //void myMessageOutput(QtMsgType /*type*/, const char *msg)
{ //{
static FILE *f = NULL; // static FILE *f = NULL;
if (!f) // if (!f)
f = fopen("qdebug.txt", "w"); // f = fopen("qdebug.txt", "w");
fprintf(f, "%s\n", msg); // fprintf(f, "%s\n", msg);
fflush(f); // fflush(f);
} //}
void testRNG() void testRNG()
{ {
@ -71,7 +71,7 @@ void testRNG()
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
qInstallMsgHandler(myMessageOutput); // qInstallMsgHandler(myMessageOutput);
QCoreApplication app(argc, argv); QCoreApplication app(argc, argv);
app.setOrganizationName("Cockatrice"); app.setOrganizationName("Cockatrice");