Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/boto3/__pycache__/__init__.cpython-39.pyc
Ðазад
a v�h[ � @ s� d dl Z d dlmZ d dlmZ dZdZdadd� Zde j dfd d �Z dd� Zd d� Zdd� Z G dd� de j�Ze �d��e� � dS )� N)�Session)�_warn_deprecated_pythonzAmazon Web Servicesz1.16.63c K s t f i | ��adS )z� Set up a default session, passing through any parameters to the session constructor. There is no need to call this unless you wish to pass custom parameters, because a default session will be created for you. N)r �DEFAULT_SESSION)�kwargs� r �~/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/boto3/__init__.py�setup_default_session s r Zboto3c C sT |du rd}t �| �}|�|� t �� }|�|� t �|�}|�|� |�|� dS )a Add a stream handler for the given name and level to the logging module. By default, this logs all boto3 messages to ``stdout``. >>> import boto3 >>> boto3.set_stream_logger('boto3.resources', logging.INFO) For debugging purposes a good choice is to set the stream logger to ``''`` which is equivalent to saying "log everything". .. WARNING:: Be aware that when logging anything from ``'botocore'`` the full wire trace will appear in your logs. If your payloads contain sensitive data this should not be used in production. :type name: string :param name: Log name :type level: int :param level: Logging level, e.g. ``logging.INFO`` :type format_string: str :param format_string: Log message format Nz0%(asctime)s %(name)s [%(levelname)s] %(message)s)�logging� getLogger�setLevel� StreamHandler� Formatter�setFormatter� addHandler)�name�level� format_string�logger�handler� formatterr r r �set_stream_logger&