https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /usr/share/apport/package-hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/apport/package-hooks/source_apport.py
"""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
        )

https://t.me/RX1948 - 2025