Closed rkmrHonjo closed 8 years ago
Thanks the patch! I'm really surprised at all function has following lines and the method name is hard coded. If you'd like to output log in begging and ending of methods, we should implement decorator for outputting log and use the decorator.
msg = BEGIN function-name: with arguments
LOG.debug(msg)
msg = END function-name
LOG.debug(msg)
Hi Muroi,
Thank you for your comment. I fix my code.
Hi @muroi ,
I fixed my code in accordance with your comments. (If I should squash two commits, please point out.)
P.S. I didn't remove logs from _get_vm_param(). Your comment is basically right. But _get_vm_param() will retry do_instance_show() if it is failed. It doesn't just call rc_util_api.do_instance_show().
Thanks for updating. Overall the codes looks good. Great job!
I still have some questions. please check the inline comments.
Thank you for your re-comments. I check those & fix my code.
Oops, I forgot commenting an important stuff. The decorator method needs wraps[1] decorator.
Oh...Thank you for pointing out.
Hi @muroi ,
Sorry for taking long to fix my code. Please check new commit.
Hi @muroi ,
I rethought about my code for logging thread name. Then I understood that my most recent patch is not good.
My fix plan is following:
(Of cource, I haven't forgotten to name thread uniquely.)
Regards.
Oops, some useless/bad codes might remain... I'm terribly sorry, please wait until the end of my re-checking.
Dear @muroi ,
Sorry to keep you wainting. Re-checking by myself was done. Please review my codes.
thank updating, @rkmrHonjo . LGTM, waiting others comments.
@rkmrHonjo Thanks for fix. @muroi Thanks for review. LGTM, good for merge.
This pull-request contains following changes.
And, remove unnecessary line from masakari-controller/db/api.py