Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs are not written to STDOUT even if log option points to it #98

Open
aladan12 opened this issue May 3, 2019 · 0 comments
Open

Logs are not written to STDOUT even if log option points to it #98

aladan12 opened this issue May 3, 2019 · 0 comments

Comments

@aladan12
Copy link

aladan12 commented May 3, 2019

I've encountered a problem when trying to point logs toSTDOUT.
My options look like this:

      def server_options
        {
          log: "-",
          pid_path: pid_file,
          worker_type: "process",
          supervisor: true,
          daemonize: true,
          log_rotate_age: no_log_rotation,
          workers: workers_amount,
          restart_server_process: true
        }
      end

log: "-" points logs to STDOUT as per documentation https://github.com/treasure-data/serverengine/blame/master/README.md#L501
However this doesn't work and seems the root cause is here: https://github.com/treasure-data/serverengine/blame/master/lib/serverengine/daemon.rb#L87

Is there a way to make log: "-" option actually work?

Note: This is essential when logging into files is not appropriate e.g. dockerization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant