sunpeek.exporter.dump_debug_info#
- sunpeek.exporter.dump_debug_info(include_plants=True, include_db_structure=True, file_path=None, session=None)#
Creates a file in memory containing various information that is useful for reproducing issues for debugging purposes. Can optionally write this to disk or return the file object.
- Parameters:
include_plants (
bool
orlist
ofplant names
) – True to include all plants, False for none or specify the names of specific plants to includeinclude_db_structure (
bool
) – Whether to include a list of database tables and their columns. If include_plants is a list, only raw data tables for plants listed will be includedfile_path (
str
) – An optional path to write the output to. If this is given, the absolute path to the output file will be returned.session (
sqlalchemy.orm.Session
) – An optional database session object, required if include_plants or include_db_structure is True
- Returns:
out
- Return type:
dict
orabsolute output file path as str