aboutsummaryrefslogtreecommitdiffstats
path: root/snmptrap/mod/trapd_io.py
diff options
context:
space:
mode:
Diffstat (limited to 'snmptrap/mod/trapd_io.py')
-rw-r--r--snmptrap/mod/trapd_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snmptrap/mod/trapd_io.py b/snmptrap/mod/trapd_io.py
index 351174f..ef67c69 100644
--- a/snmptrap/mod/trapd_io.py
+++ b/snmptrap/mod/trapd_io.py
@@ -199,7 +199,7 @@ def open_file(_loc_file_name):
try:
# open append mode just in case so nothing is lost, but should be
# non-existent file
- _loc_fd = open(_loc_file_name, 'a')
+ _loc_fd = open(_loc_file_name, 'a', 1)
return _loc_fd
except Exception as e:
msg = "Error opening " + _loc_file_name + " append mode - " + str(e)