sardana-org / sardana

Moved to GitLab: https://gitlab.com/sardana-org/sardana
39 stars 52 forks source link

Not logging in 'prepare' method #1435

Open teresanunez opened 4 years ago

teresanunez commented 4 years ago

Hi, the logging in a file (activated via the environment variable LogMacro) only affects to the run method of the macro, but not to the prepare one. What is done in prepare is not in the logging file. This also makes that if a macro is called from the prepare method of another macro, this called macro is also not logged. These both facts can be reproduced implementing the prepare method of a macro with same spock printout and running a macro from there. It happens in the python2 and python3 versions of sardana.

                   Regards,
                                   Teresa
reszelaz commented 4 years ago

Today we looked at it quickly with Teresa and here are the first ideas on how to implement it: