Set environment variable "DEBUG=1" when "--debug" is set for F::Q

John Ralls jralls at ceridwen.us
Sat Oct 11 20:06:46 EDT 2025


Bruce,

Sure, we just add it to the environment that gets passed to perl when the gnc.price_quotes log level >= info. It’ll work no matter how the user gets to the quotes module. It might not get the output into the trace file unless the user sets  “—log gnc.price-quotes=debug”. The —debug argument sets the logging level to “info” for all modules. “debug” enables more diagnostic messages, including the details of what gets sent to F::Q and what comes back.

Regards,
John Ralls


> On Oct 11, 2025, at 1:43 PM, Bruce Schuck <bschuck at asgard-systems.com> wrote:
> 
> John and team,
> 
> While responding to an issue reported to Finance::Quote when a user could not get currency rates after upgrading his OS to Ubuntu 25.10, I had an idea.
> 
> The user included output from:
> 
> gnucash-cli --debug --quotes dump currency CHF EUR
> 
> Of which the only output from F::Q is:
> 
> 18:11:51 INFO <gnc.price-quotes> [GncQuotesImpl::query_fq] Query JSON: {
> "defaultcurrency": "CHF",
> "currency": {
> "EUR": ""
> }
> }
> 
> Would it be possible that if a user has both "--debug" and "--quotes", that "DEBUG=1" is set in the environment before F::Q is called? This will turn on debugging in the F::Q methods that are using the "Smart::Comments" module for debugging.
> 
> Thank you.
> 
> Bruce S
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list