Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-2840

Improve logging x2

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Other
    • None

      I have two suggestions to enhance logging:

      1. In `picard/picard/log.py`: the `name_filter` method removes the standard path prefix for the python source file. This function should be extended to do the same for files in the plugins directories i.e. instead of `C:\a long profile path\Picard\plugins*` we now get just `plugins/*`.
      2. In the `webservice/_init_.py` `get` method, we have a warning that this method is deprecated. We should enhance this warning using Python's `inspect` or `traceback` modules to add exactly where the call to the `get` method originated as without this this message is far less useful i.e. you get several or indeed hundreds of such messages in the debug log with no idea where they were called from.    

            Unassigned Unassigned
            sophist Sophist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package