X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FLogger.pm;h=1aadb82006997e8026e13c43bca1aa239d555bcc;hp=565a8981ed4c10a985e9d143399a3f844b072089;hb=374a05c8dd5c974fe841569aa34eeabd7b072dd6;hpb=823a39c30ce9192a438dfba68b5ef78265869ca9 diff --git a/lib/DBIx/Class/DeploymentHandler/Logger.pm b/lib/DBIx/Class/DeploymentHandler/Logger.pm index 565a898..1aadb82 100644 --- a/lib/DBIx/Class/DeploymentHandler/Logger.pm +++ b/lib/DBIx/Class/DeploymentHandler/Logger.pm @@ -37,4 +37,13 @@ sub _log { warn "[DBICDH] [$level] $message"; } +sub new { + my ($self, $options, @rest) = @_; + + $options ||= {}; + $options->{env_prefix} ||= 'DBICDH'; + + $self->next::method($options, @rest) +} + 1;