Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfoZ2-0008Hs-Er for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Mar 2023 21:03:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pfoZ0-0001Wo-GW for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Mar 2023 21:03:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfoYy-0001We-PE for pgsql-hackers@lists.postgresql.org; Fri, 24 Mar 2023 21:03:06 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfoYt-0006cc-NQ for pgsql-hackers@postgresql.org; Fri, 24 Mar 2023 21:03:04 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 82F6F5C00C5; Fri, 24 Mar 2023 17:02:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 24 Mar 2023 17:02:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1679691777; x=1679778177; bh=MG OquxSRgnV58A/p/UJjkEFebu64B2zmyRFJwyWMfhM=; b=b2lKwqIpcGEhLaTIfv z1/x6UtA5iUqPI/Rva3vyCkBiQEyL/8jEHrfTU5tI7E36Hwwqukyvqwqn5meEMSA JEHIVqSAwT4Pdj9sMH2fpCGkHQwJTT0j6UNNNYu9YmjKl5BO/mxEGEUpmhvwqKRe fDoV+4TtyJWeIuLrn0aJhqGcbdtnXMYTRgVc65/SS0i1kyv8AvmnK4YWyyNVSXeQ 3eYYOV13J9JcVJ1huKyvLVjACq0Pq5gZtM7tcX6ecwSAlX6PuMuEWO+8weTh/8m7 bsnF88UoZ5QsCeyFwdG3b8V9OlLy9GdvFpYI1UUinB95X+Ur5qC/X7LCa7PumGMG t4kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679691777; x=1679778177; bh=MGOquxSRgnV58 A/p/UJjkEFebu64B2zmyRFJwyWMfhM=; b=PNuzKGAylGajU5e3lP/Dbi+ZxVqxD v1WLt7tnBCpsjv4tEnjXfkVwPMG0EELYbv+K6CyY7i6aEeH9FjFs8YMvturZX5oJ IKxhgnSUtX7lYkRu2wzSfXqB1EBhtA/Tx5c2DMRk5I50on7CcOcRFNsLnCAQ+eb6 1z0Y3p8xfZV0LA4HusZk/xpHbVwrUAOTrqhkTMdPfEk9Nq+936h5M2KqCPwxFDEW 00MQ/5n3a+NUkqiMqsSSlFd1ew/jzECL30sspWgEVlLmDHIfi0ujAn2MP+4jhb03 zjouvJftVXc39k857lGMEIjdIloenOJY2UgRjiSCi5y1q2ETBVg+uVjMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegiedgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkfhggtggujgesth dtredttddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshes rghnrghrrgiivghlrdguvgeqnecuggftrfgrthhtvghrnhepkeetkefhgffftefftefftd fhhfffleffgfefkeeigeetjeefieeikeduudevudefnecuffhomhgrihhnpegrphgrtghh vgdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Mar 2023 17:02:57 -0400 (EDT) Date: Fri, 24 Mar 2023 14:02:55 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: Make fop less verbose when building PDF Message-ID: <20230324210255.r3wved44v2p4f5b7@awork3.anarazel.de> References: <20230324194701.dqkzcdtlcikseo22@awork3.anarazel.de> <2403063.1679689197@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2403063.1679689197@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-03-24 16:19:57 -0400, Tom Lane wrote: > Andres Freund writes: > > I just figured out that one can hide those. Unfortunately not at the > > commandline, but in "$HOME/.foprc" or /etc. > > > $ cat ~/.foprc > > LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=WARN > > Yeah. I've done it locally by modifying the "fop" script ;-) > ... but probably ~/.foprc would be neater. I see that I also > changed the default logger: > > LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog > > because at least in the version I have, that isn't the default. It might be a debian patch setting it as the default. How about: In its default configuration FOP will emit an INFO message for each page. The log level can be changed via ~/.foprc: LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=WARN > > [warning] /usr/bin/fop: JVM flavor 'sun' not understood > > [WARN] FOUserAgent - Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400". > > [WARN] FOUserAgent - Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400". > > [WARN] FOUserAgent - The contents of fo:block line 2 exceed the available area in the inline-progression direction by more than 50 points. (See position 30429:383) > > [WARN] PropertyMaker - span="inherit" on fo:block, but no explicit value found on the parent FO. > > > The first is a debianism, the next two are possibly spurious [1]. But the next > > two might be relevant? > > The one about "exceed the available area" has been on my radar to fix; > it's a consequence of an overly-wide example somebody added recently. Ah, good. > The other ones have been there all along and I don't know of a way to > get rid of them. Yea, looks like the span="inherit" one is harmless and known: https://issues.apache.org/jira/browse/FOP-1534 We could silence it in our stylesheet, but it's probably not worth bothering. Greetings, Andres Freund