compass.logging.log_method_call

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

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

compass calling: compass.landice.tests.dome.decomposition_test.DecompositionTest.run()
  in /turquoise/usr/projects/climate/mhoffman/mpas/compass/compass/landice/tests/dome/decomposition_test/__init__.py
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