Skip to content

[PATCH] PluginBundle::Easy: add "log" and "log_fatal" methods [rt.cpan.org #135305] #697

@rjbs

Description

@rjbs

https://rt.cpan.org/Ticket/Display.html?id=135305

Hello,

I can't use the GitHub issue tracker to report this, since I don't have
a GitHub account. Hopefully this is ok instead, and sorry for any
inconvenience!

As I said on #distzilla, there are no "log" or "log_fatal" methods for
plugin bundles. The attached patch implements these methods for
Dist::Zilla::Role::PluginBundle::Easy.

These methods could also be implemented for
Dist::Zilla::Role::PluginBundle, but that would require moving the
"name" attribute from PluginBundle::Easy to PluginBundle. So maybe it's
best to implement the logging methods in PluginBundle::Easy and keep
PluginBundle as a minimal role.

The logging methods added in my patch are simply wrappers around "die"
and "warn", nothing more.

Find my patch below:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions