Add git has to logger
@@ -11,7 +11,7 @@ from powergenome.generators import GeneratorClusters
from powergenome.load_profiles import load_curves
from powergenome.params import DATA_PATHS
from powergenome.transmission import agg_transmission_constraints, transmission_line_distance
-from powergenome.util import init_pudl_connection, load_settings
+from powergenome.util import init_pudl_connection, load_settings, get_git_hash
if not sys.warnoptions:
import warnings
@@ -77,6 +77,9 @@ def main():
filehandler.setFormatter(formatter)
logger.addHandler(filehandler)
+ git_hash = get_git_hash()
+ logger.info(f'Current git hash is {git_hash}')
+
logger.info("Reading settings file")
settings = load_settings(path=args.settings_file)
