bcb1f66e380a5ff9b1e93d731fcd02704dadceaa,utils/redis_raw_log_middleware.py,RedisDumpMiddleware,process_message,#RedisDumpMiddleware#,47

Before Change


        return instrumented_method
    
    def process_message(self, *args, **kwargs):
        query = " ".join([str(arg) for arg in args if not isinstance(arg, Connection)])
        return { "query": query, }

After Change


    
    def process_message(self, *args, **kwargs):
        query = []
        for a, arg in enumerate(args):
            if isinstance(arg, Connection):
                continue
            if args[1] == "RESTORE" and a == 4:
                arg = "[%s bytes]" % len(arg)
            query.append(str(arg).replace("\n", ""))
        return { "query": " ".join(query) }
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: samuelclay/NewsBlur
Commit Name: bcb1f66e380a5ff9b1e93d731fcd02704dadceaa
Time: 2013-11-22
Author: samuel@ofbrooklyn.com
File Name: utils/redis_raw_log_middleware.py
Class Name: RedisDumpMiddleware
Method Name: process_message


Project Name: comic/grand-challenge.org
Commit Name: 724f7544155eff1cb1a0e3c163e6ea5e95812098
Time: 2017-11-28
Author: jamesmeakin@gmail.com
File Name: app/comicsite/templatetags/comic_templatetags.py
Class Name: AllProjectLinksNode
Method Name: render_project_links_per_year


Project Name: samuelclay/NewsBlur
Commit Name: 2b08d13f6d4494681b80b9dd18909c7d123b558c
Time: 2013-10-08
Author: samuel@ofbrooklyn.com
File Name: utils/redis_raw_log_middleware.py
Class Name: RedisDumpMiddleware
Method Name: process_message