unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Cenon Del Rosario <cdelrosario@publishing.nine.com.au>
To: Eric Wong <e@80x24.org>
Cc: unicorn-public@yhbt.net
Subject: Re: Formatting unicorn logs in json format for $stderr
Date: Wed, 7 Jul 2021 17:01:06 +1000	[thread overview]
Message-ID: <CAKZvEvKDYeWKsyGYsJDbBPYHiABnsxPWJyX7Wd5T2dMFAvDUEg@mail.gmail.com> (raw)
In-Reply-To: <20210707001604.GA18838@dcvr>

I set them up for the most part in config.ru and it is all working great now.

Thank you for all the help,
Cenon.

On Wed, 7 Jul 2021 at 10:16, Eric Wong <e@80x24.org> wrote:
>
> Cenon Del Rosario <cdelrosario@publishing.nine.com.au> wrote:
> > > > > I suspect one of those lines could be the result of
> > > > > Rack::CommonLogger from RACK_ENV=deployment or similar
> > > > > (which matched "rackup" defaults back in 2009).
> > > > >
> >
> > Yes I just tried this and it fixed the issue (I used -N but
> > RACK_ENV=none also worked)
>
> Cool, good to know.
>
> > Just wondering what other things will be impacted by turning off rack
> > middleware?
>
> Rack::{ContentLength,Chunked,TempfileReaper} for prod:
> https://urldefense.com/v3/__https://yhbt.net/unicorn-public/d5991fea2df857480b728e27c927d69c3df2080f/s/?b=lib*unicorn.rb*n67__;LyM!!LBk0ZmAmG_H4m2o!5NcQzVZYpPImkKbKC_y1fau9dHkPueop1r1vsRmW3u7mXtdXoKBx0CutbksqshNguuoNhcbOCA$
>
> You can set them up yourself in config.ru, but maybe Rails
> also does that for you.  I haven't used Rails in many years,
> but I seem to recall Rails had its own middleware stack somewhere,
> too, but you'll have to refer to Rails docs for that.

-- 
The information contained in this e-mail message and any accompanying files 
is or may be confidential. If you are not the intended recipient, any use, 
dissemination, reliance, forwarding, printing or copying of this e-mail or 
any attached files is unauthorised. This e-mail is subject to copyright. No 
part of it should be reproduced, adapted or communicated without the 
written consent of the copyright owner. If you have received this e-mail in 
error please advise the sender immediately by return e-mail or telephone 
and delete all copies. Nine Group does not guarantee the accuracy or 
completeness of any information contained in this e-mail or attached files. 
Internet communications are not secure, therefore Nine Group does not 
accept legal responsibility for the contents of this message or attached 
files.

      reply	other threads:[~2021-07-07  7:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-06  7:22 Formatting unicorn logs in json format for $stderr Cenon Del Rosario
2021-07-06 10:41 ` Eric Wong
2021-07-06 23:21   ` Cenon Del Rosario
2021-07-06 23:38     ` Eric Wong
2021-07-07  0:04       ` Cenon Del Rosario
2021-07-07  0:16         ` Eric Wong
2021-07-07  7:01           ` Cenon Del Rosario [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKZvEvKDYeWKsyGYsJDbBPYHiABnsxPWJyX7Wd5T2dMFAvDUEg@mail.gmail.com \
    --to=cdelrosario@publishing.nine.com.au \
    --cc=e@80x24.org \
    --cc=unicorn-public@yhbt.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).