def my_log_message(verbose, prio, msg):
syslog.syslog(prio, msg)<EOL>if verbose or prio == syslog.LOG_ERR:<EOL><INDENT>sys.stderr.write("<STR_LIT>" % (msg))<EOL><DEDENT>
Log to syslog, and possibly also to stderr.