Debug.txt

Debug.txt

Postby irksomeduck » Sat Sep 15, 2012 11:35 am

Why is this file so HUGE? It takes me ages to open and everyone asks for the last few lines if I have a problem! P.S. Is there a way to speed up the opening?
irksomeduck
Member
 
Posts: 224
Joined: Tue Aug 28, 2012 9:45 pm

Postby PilzAdam » Sat Sep 15, 2012 12:16 pm

irksomeduck wrote:Why is this file so HUGE? It takes me ages to open and everyone asks for the last few lines if I have a problem! P.S. Is there a way to speed up the opening?

You can delete it. It will be recreated on MT startup.
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 4:19 pm
GitHub: PilzAdam

Postby Calinou » Sat Sep 15, 2012 3:19 pm

If you want to disable it, start Minetest with the appropriate "logfile" option.

Windows (create a .bat file with this):
Code: Select all
minetest.exe --logfile NUL

Linux (create a .sh file with this, set executable permission with chmod +x):
Code: Select all
./minetest --logfile ''
Calinou
Moderator
 
Posts: 3153
Joined: Mon Aug 01, 2011 2:26 pm
GitHub: Calinou
In-game: Calinou

Postby irksomeduck » Sat Sep 15, 2012 3:25 pm

Thanks guys :D
irksomeduck
Member
 
Posts: 224
Joined: Tue Aug 28, 2012 9:45 pm

Postby LazyJ » Wed Sep 19, 2012 2:45 pm

"Thanks" from me as well.

I had been playing Minetest for a few weeks before noticing the debug.txt file was larger than any other file in Minetest, including the database. My debug.txt file was weighing in at 348 megabytes.

I'm not savvy enough to understand the debug.txt file so, at the moment, the extra disk space and cpu time it takes to maintain the debug.txt files isn't worth it to me. Thanks to Calinou's information it is easy enough to turn the debug.txt creation off and on (for those times when I'm curious).
LazyJ
Member
 
Posts: 572
Joined: Wed Sep 12, 2012 12:29 pm

Re: Debug.txt

Postby Hoffscore » Fri Mar 15, 2019 5:27 am

With the Default settings on , this debug file just basically records errors when images aren't properly accessed, etc. doesn't tell me which server I'm on, or much more than errors and time stamps.. wish there was a text channel record (ok, maybe not??) or atleast which server, so i can match server with all the photo's that get stored in the freaking bin directory?!...

BTW: notepad++ or other linux based editors can open HUGE files without having to buffer the whole freakin file.. my file was 1.9GB! running for 1 year. saved my filespace hunting this down, need to add it to the clear cache system actions... also, if u want to keep it, I compressed this text file from 1.9GB to 47MB in less than 5 min.

but yah, error codes for debuging is what this file does, not for server info.. so I guess I need to learn to access other loggers... suggestions?
Hoffscore
New member
 
Posts: 3
Joined: Fri Sep 02, 2016 4:41 am
In-game: Hoff csisdustin

Re: Debug.txt

Postby Hybrid Dog » Fri Mar 15, 2019 6:21 pm

https://github.com/minetest/minetest/pull/8382

You can disable the logging in the minetest settings (debug_log_level).
Hybrid Dog
Member
 
Posts: 2724
Joined: Thu Nov 01, 2012 12:46 pm



Return to General Discussion



Who is online

Users browsing this forum: Google Bot [Bot] and 0 guests