Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- logInfo = 'A Three-way handshake was created with this user:'
- logInfo2 = ' At: '
- logFile = open('logFile.txt','a')
- listAdd = list(address)
- logAdd = str(listAdd).strip('[]')
- logTime = str(datetime.now().strftime("%d-%m-%Y %H:%M:%S"))
- logFile.write(logInfo)
- logFile.write(logAdd)
- logFile.write(logInfo2)
- logFile.write(logTime)
- logFile.write('\n')
- logFile.close()
- userConnected = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement