facebookresearch/nle

Log files accumulating

etaoxing opened this issue · 3 comments

Had to compile from source to run on my machine, I'm on the 0.7.3 release commit.

I'm getting a bunch of nethack.Agent.{timestamp}.log files accumulating in /tmp. How do I prevent these from getting generated? They're taking up space and not being deleted.

Hey e.xing,

Thanks for your interest in NLE.

I'm not aware that we currently produce log files of that kind. E.g., when I look inside this repository,

$ git grep '\.log' '*.py'

there seems to be no result along these lines. Could you elaborate what you are running when you encounter this issue?

I'm actually using the MiniHack task definitions, so running from their gym environments. I'm also running multiple environments in parallel, so seeing each env having $HACKDIR copied to its own subdirectories in /tmp, while these nethack.*.logs accumulate directly in /tmp.

I think these log files are being produced by:

/*#define DUMPLOG_FILE "nethack-%n-%d.log"*/

Let me know if you need more info!

Hey e.xing,

Yes, you are right! We involuntarily enabled NetHack dumplogs when we simplified something else in 1c38269.

Thanks for pointing this out. This should be fixed after #240.