nanopool / nanominer

Nanominer is a versatile tool for mining cryptocurrencies on GPUs and CPUs.
https://nanominer.org
639 stars 348 forks source link

Log files have changed #208

Open wtu-fl opened 3 years ago

wtu-fl commented 3 years ago

The log files have changed with one of the recent updates 3.2.x or 3.3.x. I'm not sure if this change was intentional, or if it was a programmer's test that was not reversed. (I noticed because I wrote software that monitors the logs on each worker every few minutes, and sounds an alarm if there is a problem.) Changes include:

  1. Date on each line used to be in format like 2021-04-08, now it is 2021-Apr-08.
  2. After date and time there was formerly a "record type" like "[Statistics]" or "", which has been eliminated.
  3. Formerly a log file would "close" at midnight local time, and a new log file would be started with a new filename, like "log_2021-04-08_00-00-00.log". Typically my log files were 17 MB to 19 MB in length each day. Now log files seem to close when they are approx. 10,485,700 bytes in length, and a new log file file is created. When this happens, the new log file assumes the same name, and the old log file is given a very long name, like "log_2021-04-06_18-27-36-2021-04-08T20-12-25.084.log" (the original file name, and name for the brand new logfile, are both "log_2021-04-06_18-27-36.log"). Note that it is now April 8th but it continues to create additional log files that all begin with "log_2021-04-06" (which is when I last launched Nanominer).

I have adjusted my monitoring program, no big deal. But I wanted to point this out, in case it was a test and was not intentional. (For the record, I liked the old way better, particularly with respect to #3 above, starting logs each midnight, but if the change is permanent, I have no problem. I still love Nanominer... Keep up the good work, Grumpy.

Ceorn commented 3 years ago

Interesting, so I am since one of the recent updates experience the following issue - nanominer very often, randomly, is not logging to file, i.e. the log file is not created on the start of the application - https://github.com/nanopool/nanominer/issues/198