diff --git a/bin/srv.py b/bin/srv.py index dda9bf6..852f432 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -87,7 +87,7 @@ def send_malformed(): def log_query(ip, found, topic, user_agent): log_entry = "%s %s %s %s" % (ip, found, topic, user_agent) with open(FILE_QUERIES_LOG, 'a') as my_file: - my_file.write(log_entry+"\n") + my_file.write(log_entry.encode('utf-8')+"\n") @app.route("/", methods=['GET', 'POST']) @app.route("/", methods=["GET", "POST"])