From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B18301F8C6 for ; Wed, 7 Jul 2021 07:01:45 +0000 (UTC) Received: by mail-lf1-x134.google.com with SMTP id a18so2238215lfs.10 for ; Wed, 07 Jul 2021 00:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=publishing.nine.com.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4/sT5Xn7GvTIEancQyChTW/UbFcFxxO8yhLyPjnzMDw=; b=j3R6eUaZ8E+pPM7AP9DlaCdE/NPm6riW1tIJVwcGOIiNUdTeBnptrA/ZNIx70/bAjv n3WhbLsLsRgJM+EFt0QO0BchvYe3D4H6ergOW9Y0kTfjBHKN3dilXB0TM9Fpt8tpQZIp DOhH/aBnJ4NGiqqJm1WMibEQLN2zeTo4T4S1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4/sT5Xn7GvTIEancQyChTW/UbFcFxxO8yhLyPjnzMDw=; b=i4IcHEKYhHEruY6fnznfHM8AZbRq0fuC5GTJ/0O6bb40k2ah2FqMMlxQWvS5AyuVJB yGG/VV1+VCL2McavVcdKu63f1qpl8mPXrhXfAv57qkmG239WX6rfhDejXFQDXAB6duMW tVEbgJdSz0ajV2ce7547YLYIgYlMzF66JTdN3zgrazV70JkXNt//9g8srap4OFvc7tTV FeiVPPPcwLSv7K9tCKfDnHs+kXZbKj2Pf2PPXY72QnwuAwPK9rgbz+MWvV/99jWW3StL EiwAMFkEhinmomH+TLfaQzTLmKK/7wDc7LOTakU+nULIrVf33j7Ua9Q/UnwwvCuFh38C OSHA== X-Gm-Message-State: AOAM533RmpsbtVH8xFGVRIJM6sjLhiLBXT5YW725SdkDri61iTxDev6j xr71ok2t4jn2+qhe4z30iQ6yrIazO3TxiOILJj24wnuXGKmya/y8DwJ7/AZKePaOeZXYm2aN0gd /q7y+falzUO1qFV2jdWSx13iqb7E= X-Google-Smtp-Source: ABdhPJxr4uPSzfOfWmu8MhZHL/ORxSPRoc9SUjQNvjp+7suUK1FLXEspq8l9DCWr6MRRT8e76V41An4kZyLlM+9Py8A= X-Received: by 2002:a05:6512:3e0f:: with SMTP id i15mr17501673lfv.653.1625641303431; Wed, 07 Jul 2021 00:01:43 -0700 (PDT) MIME-Version: 1.0 References: <20210706104124.GA438@dcvr> <20210706233818.GA11462@dcvr> <20210707001604.GA18838@dcvr> In-Reply-To: <20210707001604.GA18838@dcvr> From: Cenon Del Rosario Date: Wed, 7 Jul 2021 17:01:06 +1000 Message-ID: Subject: Re: Formatting unicorn logs in json format for $stderr To: Eric Wong Cc: unicorn-public@yhbt.net Content-Type: text/plain; charset="UTF-8" List-Id: 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 wrote: > > Cenon Del Rosario 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.