server shouldn't write detailed debugging file any more
This commit is contained in:
parent
754c67fd7c
commit
29d1145663
1 changed files with 9 additions and 9 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue