def logIt(msg, errorLog=False):
    if errorLog:
        f = open(logError, 'a')
        f.write((time.strftime('%X %x'), msg) % '%s %s\n')
        f.close()
    f = open(log, 'a')
    f.write('%s %s\n' % (time.strftime('%X %x'), msg))
    f.close()
dataset/ETHPy150Open GluuFederation/community-edition-setup/static/scripts/import23.py/logIt/swapped operands of `%`