polaris.logging.log_method_call

polaris.logging.log_method_call(method, logger)[source]

Log the module path and file path of a call to a method, e.g.:

polaris calling: polaris.landice.tasks.dome.decomposition_test.DecompositionTest.run()  # noqa: E501
  in /turquoise/usr/projects/climate/mhoffman/mpas/polaris/polaris/landice/tasks/dome/decomposition_test/__init__.py  # noqa: E501
Parameters
  • method (method) – The method of a class that will be run immediately following this call

  • logger (logging.Logger) – The logger to log the method path and file path to