Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: mqarty on September 28, 2022, 08:28:21 PM

Title: ENV VAR for Logging Verbosity
Post by: mqarty on September 28, 2022, 08:28:21 PM
Hi,

We are starting the process using the Metashape python library. We are already using the license env var `agisoft_LICENSE`.

Is there another env var for changing the verbosity of the logging?

Or some setting that we can push into the Document() to reduce the logs. It is currently very noisy and we don't need most of the logs unless we are debugging.


Thanks,

Marty
Title: Re: ENV VAR for Logging Verbosity
Post by: Alexey Pasumansky on October 13, 2022, 08:15:34 PM
Hello Marty,

There is no such variable at the moment.

The suggested workaround is to use OS means for the log redirection when the script is executed, for example, on Windows:
Code: [Select]
python.exe script.py > output.txt 2>&1