log_event: Don't flush the log file right before we close it

There's no need.

(imported from commit 8c3b933b7fddfb858ee4dc201b63b6fe921dc8e9)
This commit is contained in:
Keegan McAllister
2012-11-14 10:43:50 -05:00
parent f132cd311b
commit ccf14b89c2

View File

@@ -479,7 +479,6 @@ def log_event(event):
fcntl.flock(lock, fcntl.LOCK_EX)
f = open(settings.MESSAGE_LOG, "a")
f.write(simplejson.dumps(event) + "\n")
f.flush()
f.close()
fcntl.flock(lock, fcntl.LOCK_UN)
lock.close()