Skip to content

Commit

Permalink
Merge pull request #65 from natefoo/unicornherder-logging
Browse files Browse the repository at this point in the history
Don't use gunicorn logging options with unicornherder
  • Loading branch information
mvdbeek authored Aug 17, 2022
2 parents 46a3b81 + 0ab80d5 commit b3b4bf6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gravity/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,16 @@ class GalaxyUnicornHerderService(Service):
" -k galaxy.webapps.galaxy.workers.Worker" \
" -b {gunicorn[bind]}" \
" --workers={gunicorn[workers]}" \
" --access-logfile {log_dir}/gunicorn.access.log" \
" --error-logfile {log_dir}/gunicorn.error.log --capture-output" \
" --config python:galaxy.web_stack.gunicorn_config" \
" {gunicorn[preload]}" \
" {gunicorn[extra_args]}"

get_environment = GalaxyGunicornService.get_environment
def get_environment(self):
environment = self.default_environment.copy()
if sys.platform == 'darwin':
environment["OBJC_DISABLE_INITIALIZE_FORK_SAFETY"] = "YES"
environment["GALAXY_CONFIG_LOG_DESTINATION"] = "{log_dir}/gunicorn.log"
return environment


class GalaxyCeleryService(Service):
Expand Down

0 comments on commit b3b4bf6

Please sign in to comment.