Hello (Hello! Long time reader, first time poster!),
I have my logging.log_level set to INFO in my config and I get the verbose logging, which is great. But I’d like to quiet certain components. For example, I’d like full_node to be at WARNING.
The YAML is using pointers to the farmer.logging property. Does anyone know if I can create a new logging property at top level, say a “quiet logging” node that I can then reference in components I want to just be quiet already?
Now I’ve just thought of another idea: I don’t have to point to the farmer logging – I could just remove the pointer and have a different logging configuration on each component that I want different.
Anyway, ideas are welcome. Thanks for reading my first post!
Well, I’ve answered my own question. I suppose writing out the problem helped. I’ll explain explicitly in case it helps anyone else, especially those not in technical work.
At the bottom of config.yaml, there is a general logging property. I modified that to be my default logging configuration and gave it an address of defaultlog, like so:
Or so I thought that this would be nice. I replaced just the harvester entry with your above and when I relaunched, I got the spinner for plots and farm in the gui. It didn’t finish and farm, at least as long as I waited. Did I miss something, did I need to add something else? How did you get it to work?
Thanks! I try it again. I’d copied and pasted last time, but I’ll make sure this time with the indents. Yes, Win10 GUI. It may be a while, I just started a 70 plot schedule going this noon… so a few days likely before restarting…
Yes, works for me too. Great idea you came up with! Rather than parse the general log, this makes it super easy to see what you care about. IMHO should have been this way originally.
Discovered a bit of a frustrating thing. Upgrade .chia and any custom changes to .yaml get reset to defaults, wiping mods like this. Something to remember every upgrade.
Oh, interesting. GUI upgrades wipe and reset .chia/mainnet/config/config.yaml?
I use CLI and it doesn’t change those settings on upgrade. I should check to make sure my config is being migrated with new settings — I believe it updated it with pooling configuration. Thanks for the reminder!
We should also note that if anyone does this, some monitoring tools like Chiadog may not work correctly. When I looked at the Chiadog config options, it only took one log file to inspect. I might be wrong but heads up just in case.