__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""Apport package hook for apport itself.
This adds /var/log/apport.log and the file listing in /var/crash to the report.
"""
# Copyright 2007 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
import glob
import apport.hookutils
APPORT_LOG = "/var/log/apport.log"
def add_info(report):
"""Add Apport logs to the problem report."""
apport.hookutils.attach_file_if_exists(report, APPORT_LOG, "ApportLog")
reports = glob.glob("/var/crash/*")
if reports:
report["CrashReports"] = apport.hookutils.command_output(
["stat", "-c", "%a:%u:%g:%s:%y:%x:%n"] + reports
)