Skip to content

Commit

Permalink
adding2 sa_show_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ali96343 committed Nov 1, 2023
1 parent ecf0487 commit 23e064a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py4web/server_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ def load_config(self):
location=gunicorn_vars['use_native_config' ]
super().load_config_from_module_name_or_filename(location)
self.cfg.set('config', './' + location)
print (f'gunicorn: used config {location}')
sa_show_msg and print (f'gunicorn: used config {location}')
return

if gunicorn_vars:
config.update(gunicorn_vars)
location = gunicorn_vars['config']
print(f"gunicorn: used config {location}", config)
sa_show_msg and print(f"gunicorn: used config {location}", config)

for k, v in config.items():
if k not in self.cfg.settings:
Expand Down

0 comments on commit 23e064a

Please sign in to comment.