26N/A# The contents of this file are subject to the terms of the 26N/A# Common Development and Distribution License (the "License"). 26N/A# You may not use this file except in compliance with the License. 26N/A# See the License for the specific language governing permissions 26N/A# and limitations under the License. 26N/A# When distributing Covered Code, include this CDDL HEADER in each 26N/A# If applicable, add the following below this CDDL HEADER, with the 26N/A# fields enclosed by brackets "[]" replaced with your own identifying 26N/A# information: Portions Copyright [yyyy] [name of copyright owner] 3351N/A# Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. 2828N/A# Missing docstring; pylint: disable=C0111 2466N/A """Simple subclass to ignore exceptions raised during logging output.""" 576N/A """ This class defines settings which are global 576N/A to the client instance """ 2693N/A # These properties allow the client to describe how it 2693N/A # has been asked to behave with respect to output. This 2693N/A # allows subprocess invocations (e.g. for linked images) to 2693N/A # discover from the global settings how they are expected 2690N/A # runid, used by the pkg.1 client and the linked image 2690N/A # subsystem when when generating temporary files. 2690N/A # file descriptor used by ProgressTracker classes when running 2690N/A # concurrency value used for linked image recursion 2690N/A # remove PKG_CONCURRENCY from the environment so child 2690N/A # processes don't inherit it. 1448N/A # Default maximum number of redirects received before 1448N/A # Default number of retries per-host 1448N/A # Default number of seconds to give up if not connected 1448N/A # Default number of seconds beneath low-speed limit before 1448N/A # Maximum number of transient errors before we abort an 3356N/A # The location within the image of the cache for pkg.sysrepo(8) 1218N/A # Maximum number of timeouts before client gives up. 1218N/A # Number of seconds trying to connect before client 1218N/A "PKG_CLIENT_CONNECT_TIMEOUT",
1218N/A # Number of seconds below lowspeed limit before 1218N/A "PKG_CLIENT_LOWSPEED_TIMEOUT",
1448N/A # Number of transient errors before transaction 1448N/A # Number of redirects before a connection is 2828N/A # Method could be a function; pylint: disable=R0201 1431N/A """Resets client logging to its default state. This will cause 1431N/A all logging.INFO entries to go to sys.stdout, and all entries of 1431N/A logging.WARNING or higher to go to sys.stderr.""" 1431N/A # Don't pass messages that are rejected to the root logger. 1431N/A # By default, log all informational messages, but not warnings 1431N/A # Minimum logging level for informational messages. 1431N/A # Enforce maximum logging level for informational messages. 1431N/A # By default, log all warnings and above to stderr. 1431N/A # Stash the handles so they can be removed later.