(msg)
If debugging is enabled, write the given string
       to the debug file
If debugging is enabled, write the given string
       to the debug file
If debugging is enabled write the given string to the debug file
def debug(msg):
    """If debugging is enabled, write the given string
       to the debug file
    """
    dbg = config.get('log')
    if config.get('debug') and not os.path.islink(dbg):
        with open(dbg, 'a+') as f:
            f.write(format('[%s] %s\n' % (timestamp(), msg)))
def debug ( msg ) : dbg = config . get ( 'log' ) if config . get ( 'debug' ) and not os . path . islink ( dbg ) : with open ( dbg , 'a+' ) as f : f . write ( format ( '[%s] %s\n' % ( timestamp ( ) , msg ) ) )