Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2F8F7200D09 for ; Tue, 12 Sep 2017 10:57:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2E65A1609C7; Tue, 12 Sep 2017 08:57:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 767C21609C6 for ; Tue, 12 Sep 2017 10:57:25 +0200 (CEST) Received: (qmail 12908 invoked by uid 500); 12 Sep 2017 08:57:24 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 12894 invoked by uid 99); 12 Sep 2017 08:57:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2017 08:57:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A2966DC1C5; Tue, 12 Sep 2017 08:57:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id FMcuCYChgS8U; Tue, 12 Sep 2017 08:57:21 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 84DB26126D; Tue, 12 Sep 2017 08:57:21 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 28928E010F; Tue, 12 Sep 2017 08:57:21 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 44744C400A2; Tue, 12 Sep 2017 08:57:19 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4245981883199691183==" MIME-Version: 1.0 Subject: Re: Review Request 62018: Updated logging::initialize to make flags optional. From: Armand Grillet To: Andrei Budnik , Alexander Rukletsov Cc: Mesos Reviewbot , Mesos Reviewbot Windows , Armand Grillet , Ionut Balutoiu , mesos Date: Tue, 12 Sep 2017 08:57:19 -0000 Message-ID: <20170912085719.5242.43430@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Armand Grillet X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/62018/ X-Sender: Armand Grillet References: <20170904133905.30264.91197@reviews-vm2.apache.org> In-Reply-To: <20170904133905.30264.91197@reviews-vm2.apache.org> Reply-To: Armand Grillet X-ReviewRequest-Repository: mesos archived-at: Tue, 12 Sep 2017 08:57:26 -0000 --===============4245981883199691183== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Sept. 4, 2017, 1:39 p.m., Alexander Rukletsov wrote: > > src/logging/logging.cpp > > Lines 135-139 (patched) > > > > > > This approach changes defaults for clients, who start calling `logging::initialize(argv0)` now. For example, according to https://github.com/google/glog/blob/v0.3.3/src/logging.cc#L140, > > the default for `FLAGS_logbufsecs` will change from `30` to `0`. More importantly, the default for `FLAGS_logtostderr` is `false` (see https://github.com/google/glog/blob/v0.3.3/src/logging.cc#L101), while with your change it will become `true`. > > > > It is hard to say whether it is an issue or not (probably not). If you want to code defensively, you should guard parts of this function with `if (_flags.isSome()) {...}`. However, I think it's fine to keep it as is, extending the comment here saying that glog defaults can be overridden. The new patch adds guard parts. - Armand ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62018/#review184487 ----------------------------------------------------------- On Sept. 6, 2017, 9:48 a.m., Armand Grillet wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62018/ > ----------------------------------------------------------- > > (Updated Sept. 6, 2017, 9:48 a.m.) > > > Review request for mesos, Andrei Budnik and Alexander Rukletsov. > > > Bugs: MESOS-7586 > https://issues.apache.org/jira/browse/MESOS-7586 > > > Repository: mesos > > > Description > ------- > > Thiw will be used to initialize logging in the main functions > that do not use mesos::internal::logging::Flags. > > > Diffs > ----- > > src/logging/logging.hpp 0e448f25de6c66d772f5bc481fbaf4aa493fd8af > src/logging/logging.cpp 70d66a5c396f709e8f27ad0d51315ed6d257f73b > > > Diff: https://reviews.apache.org/r/62018/diff/2/ > > > Testing > ------- > > ``` > $ make check > ``` > > > Thanks, > > Armand Grillet > > --===============4245981883199691183==--