Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. logInfo = 'A Three-way handshake was created with this user:'
  2. logInfo2 = ' At: '
  3. logFile = open('logFile.txt','a')
  4. listAdd = list(address)
  5. logAdd = str(listAdd).strip('[]')
  6. logTime = str(datetime.now().strftime("%d-%m-%Y %H:%M:%S"))
  7.  
  8.  
  9. logFile.write(logInfo)
  10. logFile.write(logAdd)
  11. logFile.write(logInfo2)
  12. logFile.write(logTime)
  13. logFile.write('\n')
  14. logFile.close()
  15. userConnected = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement