mstrio > config¶
- mstrio.config.get_logging_level()¶
Calculate and return logging level to configure logger.
- Return type:
int
- mstrio.config.temp_verbose_disable()¶
Temporarily disable verbose logging, with keeping current state.
Built to be used as context with with statement:
>>> with temp_verbose_disable(): >>> ...
- mstrio.config.toggle_debug_mode()¶
Toggle debug mode between INFO and DEBUG. It will change root logger’s logging level.
- Return type:
None
- mstrio.config.debug = False¶
Lets the program run in debugging mode, logging more information at each step.
- mstrio.config.default_request_timeout: int | float | None = 86400¶
Time (in seconds) after which every Connection.<request_type>(…) method (example: Connection.get(…)) times out and stops waiting for response, raising requests.Timeout. Default is 86400 seconds (24 hours).
It uses requests library’s timeout parameter under the hood. (read more: <https://requests.readthedocs.io/en/latest/user/quickstart/#timeouts>)
- mstrio.config.fetch_on_init = True¶
Controls if object will fetch basic data from server on init.
- mstrio.config.progress_bar = True¶
Controls whether progress bar will be shown during long fetch operations.
- mstrio.config.verbose = True¶
Controls the amount of feedback from the I-Server.
- mstrio.config.wip_warnings_enabled = True¶
Controls whether warnings/errors about WIP functionality are emitted