Skip to content

Log exceptions rather than swallow them #96

@geo2a

Description

@geo2a

Sometimes we would like to see the raw error messages when a kup command fails. This is very useful on CI, but I do agree that we'd really want to hide that from the users by default.

I propose we log the messages of exceptions at debug level, for example here in the implementation of kup push:

    except Exception as e:
        rich.print('❗ [red]Could not push binaries to cachix!')
        logger.debug(e.msg) # we should add this
        sys.exit(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions