Skip to content

Commit

Permalink
reduce log level
Browse files Browse the repository at this point in the history
  • Loading branch information
jdries committed Oct 11, 2024
1 parent bc23643 commit 2c90d13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions openeogeotrellis/deploy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
def load_custom_processes(logger=_log, _name="custom_processes"):
"""Try loading optional `custom_processes` module"""
try:
logger.info("Trying to load {n!r} with PYTHONPATH {p!r}".format(n=_name, p=sys.path))
logger.debug("Trying to load {n!r} with PYTHONPATH {p!r}".format(n=_name, p=sys.path))
custom_processes = importlib.import_module(_name)
logger.info("Loaded {n!r}: {p!r}".format(n=_name, p=custom_processes.__file__))
logger.debug("Loaded {n!r}: {p!r}".format(n=_name, p=custom_processes.__file__))
return custom_processes
except ImportError as e:
logger.info('{n!r} not loaded: {e!r}.'.format(n=_name, e=e))
logger.debug('{n!r} not loaded: {e!r}.'.format(n=_name, e=e))


def get_socket() -> (str, int):
Expand Down
4 changes: 2 additions & 2 deletions openeogeotrellis/deploy/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,13 @@ def start_main():
)

try:
with TimingLogger(f"batch_job.py main {os.getpid()=}", logger=logger):
with TimingLogger(f"Starting batch job {os.getpid()=}", logger=logger):
main(sys.argv)
except Exception as e:
error_summary = GeoPySparkBackendImplementation.summarize_exception_static(e)
fmt = Format(max_value_str_len=1000)
logger.exception("OpenEO batch job failed: " + error_summary.summary)
logger.error("Batch job error stack trace with locals", extra={"exc_info_with_locals": format_exc(e, fmt=fmt)})
logger.info("Batch job error stack trace with locals", extra={"exc_info_with_locals": format_exc(e, fmt=fmt)})
raise


Expand Down
2 changes: 1 addition & 1 deletion openeogeotrellis/layercatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def dump_layer_catalog():
def _merge_layers_with_common_name(metadata: CatalogDict):
"""Merge collections with same common name. Updates metadata dict in place."""
common_names = set(m["common_name"] for m in metadata.values() if "common_name" in m)
logger.info(f"Creating merged collections for common names: {common_names}")
logger.debug(f"Creating merged collections for common names: {common_names}")
for common_name in common_names:
merged = {
"id": common_name,
Expand Down

0 comments on commit 2c90d13

Please sign in to comment.