stock_vertical_lift: do not log VERTICAL_LIFT_SECRET

This commit is contained in:
Simone Orsi
2022-05-03 15:54:28 +02:00
parent afb2196b8a
commit ef61f35264

View File

@@ -14,9 +14,5 @@ class VerticalLiftController(http.Controller):
rec = request.env["vertical.lift.command"].sudo().record_answer(answer) rec = request.env["vertical.lift.command"].sudo().record_answer(answer)
return str(rec.id) return str(rec.id)
else: else:
_logger.error( _logger.error("secret mismatch: %r", secret)
"secret mismatch: %r != %r",
secret,
os.environ.get("VERTICAL_LIFT_SECRET", ""),
)
raise http.AuthenticationError() raise http.AuthenticationError()