)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":13609,"name":"Pavel Boldin","email":"pboldin@mirantis.com","username":"pboldin"},"change_message_id":"f22d1156798371d100c53aeda2c722357fb9d561","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Pavel Boldin \u003cpboldin@mirantis.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-04-16 19:14:02 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add decorator `log_deprecated_args\u0027 for function"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add decorator `log_deprecated_args\u0027 that issues a message whenever"},{"line_number":10,"context_line":"someone tries to call the decorated function with an obsolete arg."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dac4157f_39498fd1","line":7,"updated":"2015-04-18 22:56:03.000000000","message":"Add function decorator `log_deprecated_args\u0027","commit_id":"04bed6aa6c09e237afb671dd8205bff1232906f4"},{"author":{"_account_id":13609,"name":"Pavel Boldin","email":"pboldin@mirantis.com","username":"pboldin"},"change_message_id":"f22d1156798371d100c53aeda2c722357fb9d561","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add decorator `log_deprecated_args\u0027 for function"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add decorator `log_deprecated_args\u0027 that issues a message whenever"},{"line_number":10,"context_line":"someone tries to call the decorated function with an obsolete arg."},{"line_number":11,"context_line":"Can be configured to either issue a message each time or only once."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Icedf72c40d9255f8d82233ebf640165d4827d53b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dac4157f_39206ff7","line":10,"updated":"2015-04-18 22:56:03.000000000","message":"whenever the decorated function is called with deprecated keyword arguments supplied. Message is issued only once or per each call depending of the configuration.","commit_id":"04bed6aa6c09e237afb671dd8205bff1232906f4"}],"rally/common/utils.py":[{"author":{"_account_id":13609,"name":"Pavel Boldin","email":"pboldin@mirantis.com","username":"pboldin"},"change_message_id":"ee11b9a60f73a897d0e6f304d66a930b2cf3108d","unresolved":false,"context_lines":[{"line_number":247,"context_line":"                        log_function\u003dNone, once\u003dFalse):"},{"line_number":248,"context_line":"    \"\"\"A wrapper marking certain arguments as deprecated."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    :param message: Message that describes why the method was deprecated"},{"line_number":251,"context_line":"    :param rally_version: version of Rally when the method was deprecated"},{"line_number":252,"context_line":"    :param deprecated_args: List of deprectaed args."},{"line_number":253,"context_line":"    :param log_function: Logging method to be used, e.g. LOG.info"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aa745d1_6d095c95","line":250,"updated":"2015-04-16 16:31:08.000000000","message":"the arguments were","commit_id":"04bed6aa6c09e237afb671dd8205bff1232906f4"},{"author":{"_account_id":13609,"name":"Pavel Boldin","email":"pboldin@mirantis.com","username":"pboldin"},"change_message_id":"ee11b9a60f73a897d0e6f304d66a930b2cf3108d","unresolved":false,"context_lines":[{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    :param message: Message that describes why the method was deprecated"},{"line_number":251,"context_line":"    :param rally_version: version of Rally when the method was deprecated"},{"line_number":252,"context_line":"    :param deprecated_args: List of deprectaed args."},{"line_number":253,"context_line":"    :param log_function: Logging method to be used, e.g. LOG.info"},{"line_number":254,"context_line":"    :param once: Show only once (default is each)"},{"line_number":255,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"5aa745d1_0df9b880","line":252,"updated":"2015-04-16 16:31:08.000000000","message":"deprecated","commit_id":"04bed6aa6c09e237afb671dd8205bff1232906f4"},{"author":{"_account_id":8507,"name":"Mikhail Dubov","email":"mdubov@mirantis.com","username":"msdubov"},"change_message_id":"1e6289702662defd5afc45250b59911ba76ad749","unresolved":false,"context_lines":[{"line_number":247,"context_line":"                        log_function\u003dNone, once\u003dFalse):"},{"line_number":248,"context_line":"    \"\"\"A wrapper marking certain arguments as deprecated."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    :param message: Message that describes why the method was deprecated"},{"line_number":251,"context_line":"    :param rally_version: version of Rally when the method was deprecated"},{"line_number":252,"context_line":"    :param deprecated_args: List of deprectaed args."},{"line_number":253,"context_line":"    :param log_function: Logging method to be used, e.g. LOG.info"}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_f7197c89","line":250,"updated":"2015-04-21 22:46:40.000000000","message":"\"... why the arguments were deprecated\"","commit_id":"9601aedfbbc8e90d5a5560f52ac4791200ad534a"},{"author":{"_account_id":8507,"name":"Mikhail Dubov","email":"mdubov@mirantis.com","username":"msdubov"},"change_message_id":"1e6289702662defd5afc45250b59911ba76ad749","unresolved":false,"context_lines":[{"line_number":248,"context_line":"    \"\"\"A wrapper marking certain arguments as deprecated."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    :param message: Message that describes why the method was deprecated"},{"line_number":251,"context_line":"    :param rally_version: version of Rally when the method was deprecated"},{"line_number":252,"context_line":"    :param deprecated_args: List of deprectaed args."},{"line_number":253,"context_line":"    :param log_function: Logging method to be used, e.g. LOG.info"},{"line_number":254,"context_line":"    :param once: Show only once (default is each)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_9716c053","line":251,"updated":"2015-04-21 22:46:40.000000000","message":"s/method/arguments","commit_id":"9601aedfbbc8e90d5a5560f52ac4791200ad534a"},{"author":{"_account_id":8507,"name":"Mikhail Dubov","email":"mdubov@mirantis.com","username":"msdubov"},"change_message_id":"1e6289702662defd5afc45250b59911ba76ad749","unresolved":false,"context_lines":[{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    :param message: Message that describes why the method was deprecated"},{"line_number":251,"context_line":"    :param rally_version: version of Rally when the method was deprecated"},{"line_number":252,"context_line":"    :param deprecated_args: List of deprectaed args."},{"line_number":253,"context_line":"    :param log_function: Logging method to be used, e.g. LOG.info"},{"line_number":254,"context_line":"    :param once: Show only once (default is each)"},{"line_number":255,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_37313406","line":252,"updated":"2015-04-21 22:46:40.000000000","message":"typo: deprecated","commit_id":"9601aedfbbc8e90d5a5560f52ac4791200ad534a"},{"author":{"_account_id":8507,"name":"Mikhail Dubov","email":"mdubov@mirantis.com","username":"msdubov"},"change_message_id":"1e6289702662defd5afc45250b59911ba76ad749","unresolved":false,"context_lines":[{"line_number":260,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":261,"context_line":"            if (not once) or (not getattr(f, \"_warned_dep_args\", False)):"},{"line_number":262,"context_line":"                deprecated \u003d \", \".join(["},{"line_number":263,"context_line":"                        \"`%s\u0027\" % x for x in deprecated_args if x in kwargs])"},{"line_number":264,"context_line":"                if deprecated:"},{"line_number":265,"context_line":"                    log_function("},{"line_number":266,"context_line":"                        \"%(msg)s (args %(args)s deprecated in Rally \""}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_57094830","line":263,"updated":"2015-04-21 22:46:40.000000000","message":"\"`%s\u0027\" - different quote signs around %s","commit_id":"9601aedfbbc8e90d5a5560f52ac4791200ad534a"},{"author":{"_account_id":13609,"name":"Pavel Boldin","email":"pboldin@mirantis.com","username":"pboldin"},"change_message_id":"0711b297f9d18bda685bf98c99ff7c43066aade2","unresolved":false,"context_lines":[{"line_number":260,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":261,"context_line":"            if (not once) or (not getattr(f, \"_warned_dep_args\", False)):"},{"line_number":262,"context_line":"                deprecated \u003d \", \".join(["},{"line_number":263,"context_line":"                        \"`%s\u0027\" % x for x in deprecated_args if x in kwargs])"},{"line_number":264,"context_line":"                if deprecated:"},{"line_number":265,"context_line":"                    log_function("},{"line_number":266,"context_line":"                        \"%(msg)s (args %(args)s deprecated in Rally \""}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_92724eac","line":263,"in_reply_to":"dac4157f_57094830","updated":"2015-04-21 22:49:43.000000000","message":"Intended so.","commit_id":"9601aedfbbc8e90d5a5560f52ac4791200ad534a"},{"author":{"_account_id":8507,"name":"Mikhail Dubov","email":"mdubov@mirantis.com","username":"msdubov"},"change_message_id":"1e6289702662defd5afc45250b59911ba76ad749","unresolved":false,"context_lines":[{"line_number":267,"context_line":"                        \"v%(version)s)\" %"},{"line_number":268,"context_line":"                        {\"msg\": message, \"version\": rally_version,"},{"line_number":269,"context_line":"                         \"args\": deprecated})"},{"line_number":270,"context_line":"                    setattr(f, \"_warned_dep_args\", once)"},{"line_number":271,"context_line":"            result \u003d f(*args, **kwargs)"},{"line_number":272,"context_line":"            return result"},{"line_number":273,"context_line":"        return wrapper"}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_324dc26c","line":270,"updated":"2015-04-21 22:46:40.000000000","message":"I see one problem with this \u0027once\u0027 stuff: the same method may be called twice with different args, but if once\u003dTrue, then only the first call will be logged.","commit_id":"9601aedfbbc8e90d5a5560f52ac4791200ad534a"},{"author":{"_account_id":13609,"name":"Pavel Boldin","email":"pboldin@mirantis.com","username":"pboldin"},"change_message_id":"0711b297f9d18bda685bf98c99ff7c43066aade2","unresolved":false,"context_lines":[{"line_number":267,"context_line":"                        \"v%(version)s)\" %"},{"line_number":268,"context_line":"                        {\"msg\": message, \"version\": rally_version,"},{"line_number":269,"context_line":"                         \"args\": deprecated})"},{"line_number":270,"context_line":"                    setattr(f, \"_warned_dep_args\", once)"},{"line_number":271,"context_line":"            result \u003d f(*args, **kwargs)"},{"line_number":272,"context_line":"            return result"},{"line_number":273,"context_line":"        return wrapper"}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_12b63e3d","line":270,"in_reply_to":"dac4157f_324dc26c","updated":"2015-04-21 22:49:43.000000000","message":"I see it as well, but the solution is too fix calls one at a time.\n\nInpatient user can specify \u0027once\u003dFalse\u0027 and get all the enjoyment he wants.\n\nImplementing a call trace handler would be an incompatible overkill IMO.","commit_id":"9601aedfbbc8e90d5a5560f52ac4791200ad534a"}]}
