Sitelet https://web.archive.org/web/20250912134710/https://github.com/pyinstaller/pyinstaller/issues/5124
Skip to content

Remove duplicate log messages #5124

@htgoebel

Description

@htgoebel

If a hook as an excludedimports entry, this currently leads to duplicate log entries:

INFO     PyInstaller.depend.imphook:imphook.py:576 Excluding import 'argparse'
INFO     PyInstaller.depend.imphook:imphook.py:596   Removing import of argparse from module pickle
INFO     PyInstaller.depend.imphook:imphook.py:576 Excluding import 'doctest'
INFO     PyInstaller.depend.imphook:imphook.py:596   Removing import of doctest from module pickle

I suggest merging them into

INFO     PyInstaller.depend.imphook:imphook.py:576 Excluding import 'argparse' from module pickle
INFO     PyInstaller.depend.imphook:imphook.py:576 Excluding import 'doctest' from module pickle

Still one line per excluded import, though.

If there are good reasons to keep both log lines per excluded import, keep both :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThis is a good issue if you want to start working on PyInstallerpull-request wantedPlease submit a pull-request for this, maintainers will not actively work on this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions