| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/uaclient/__pycache__/ |
Upload File : |
U
��g� � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZm Z m
Z
d dlmZm
Z
mZmZ d dlmZ G dd� dej�ZG dd � d ej�ZG d
d� dej�Zed�d
d�Zed�dd�Ze e d�dd�Zdd� Ze
eef ed�dd�Zdd� ZdS )� N)�OrderedDict)�Any�Dict�List�Union)�defaults�secret_manager�system�util)�UAConfigc @ s e Zd ZdZejd�dd�ZdS )�RegexRedactionFilter�,A logging filter to redact confidential info��recordc C s t �t|j��|_dS �NT)r
Zredact_sensitive_logs�str�msg��selfr � r �./usr/lib/python3/dist-packages/uaclient/log.py�filter s zRegexRedactionFilter.filterN��__name__�
__module__�__qualname__�__doc__�logging� LogRecordr r r r r r s r c @ s e Zd ZdZejd�dd�ZdS )�KnownSecretRedactionFilterr
r c C s t j�t|j��|_dS r )r ZsecretsZredact_secretsr r r r r r r s z!KnownSecretRedactionFilter.filterNr r r r r r s r c @ s. e Zd ZdZdZdZdZeje d�dd�Z
dS ) �JsonArrayFormatterzYJson Array Formatter for our logging mechanism
Custom made for Pro logging needs
z%Y-%m-%dT%H:%M:%Sz%s.%03d)�asctimeZ levelname�nameZfuncName�lineno�message)r �returnc C s� |� � |_| �|�|_i }|jr0| �|j�|d<