Skip to content

Commit

Permalink
adding sa_show_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ali96343 committed Nov 1, 2023
1 parent 6d1824f commit ecf0487
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions py4web/server_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ def load_config(self):

gunicorn_vars = self.get_gunicorn_vars()

sa_show_msg = True
if 'sa_show_msg' in gunicorn_vars:
if gunicorn_vars['sa_show_msg'].lower() == 'false' :
sa_show_msg = False
del gunicorn_vars['sa_show_msg']

if 'use_native_config' in gunicorn_vars:
location=gunicorn_vars['use_native_config' ]
super().load_config_from_module_name_or_filename(location)
Expand Down

0 comments on commit ecf0487

Please sign in to comment.