human
I wrote the below code

    def decorator(fn):
        def decorated_func(*args, **dargs):
            try:
                fn(*args, **dargs)
            except Exception:
                print msg
                traceback.print_exc(file=sys.stdout)
        return decorated_func
    return decorator

What's a good function header?
 Can you provide a Python program to print msg?
assistant
#Here is Python program to print msg
.

def log_and_ignore_errors(msg):