Forum

Author Topic: ENV VAR for Logging Verbosity  (Read 1646 times)

mqarty

  • Newbie
  • *
  • Posts: 2
    • View Profile
ENV VAR for Logging Verbosity
« 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

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: ENV VAR for Logging Verbosity
« Reply #1 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
Best regards,
Alexey Pasumansky,
Agisoft LLC