Hello community,
here is the log from the commit of package perl-Log-Dispatchouli for
openSUSE:Factory checked in at 2020-08-28 23:45:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Log-Dispatchouli (Old)
and /work/SRC/openSUSE:Factory/.perl-Log-Dispatchouli.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Log-Dispatchouli"
Fri Aug 28 23:45:34 2020 rev:17 rq:829742 version:2.022
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Log-Dispatchouli/perl-Log-Dispatchouli.changes
2020-08-21 19:18:18.984856866 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Log-Dispatchouli.new.3399/perl-Log-Dispatchouli.changes
2020-08-28 23:45:38.343476380 +0200
@@ -1,0 +2,9 @@
+Tue Aug 25 03:08:02 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 2.022
+ see /usr/share/doc/packages/perl-Log-Dispatchouli/Changes
+
+ 2.022 2020-08-24 13:50:15-04:00 America/New_York
+ - don't duplicate pid in syslog!
+
+-------------------------------------------------------------------
Old:
----
Log-Dispatchouli-2.021.tar.gz
New:
----
Log-Dispatchouli-2.022.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Log-Dispatchouli.spec ++++++
--- /var/tmp/diff_new_pack.sxIZSB/_old 2020-08-28 23:45:39.667475532 +0200
+++ /var/tmp/diff_new_pack.sxIZSB/_new 2020-08-28 23:45:39.667475532 +0200
@@ -17,7 +17,7 @@
Name: perl-Log-Dispatchouli
-Version: 2.021
+Version: 2.022
Release: 0
%define cpan_name Log-Dispatchouli
Summary: Simple wrapper around Log::Dispatch
++++++ Log-Dispatchouli-2.021.tar.gz -> Log-Dispatchouli-2.022.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/Changes
new/Log-Dispatchouli-2.022/Changes
--- old/Log-Dispatchouli-2.021/Changes 2020-08-12 17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/Changes 2020-08-24 19:50:18.000000000 +0200
@@ -1,5 +1,8 @@
Revision history for Log-Dispatchouli
+2.022 2020-08-24 13:50:15-04:00 America/New_York
+ - don't duplicate pid in syslog!
+
2.021 2020-08-12 11:48:57-04:00 America/New_York
- add another experimental means to replace how Syslog output is set up
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/META.json
new/Log-Dispatchouli-2.022/META.json
--- old/Log-Dispatchouli-2.021/META.json 2020-08-12 17:48:59.000000000
+0200
+++ new/Log-Dispatchouli-2.022/META.json 2020-08-24 19:50:18.000000000
+0200
@@ -79,7 +79,7 @@
"web" : "https://github.com/rjbs/Log-Dispatchouli"
}
},
- "version" : "2.021",
+ "version" : "2.022",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.032000"
@@ -265,7 +265,7 @@
{
"class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
"name" : "@RJBS/Test::ReportPrereqs",
- "version" : "0.027"
+ "version" : "0.028"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -451,7 +451,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "2.021",
+ "tag" : "2.022",
"tag_format" : "%v",
"tag_message" : "v%V"
},
@@ -578,10 +578,11 @@
"Olivier Mengu\u00e9 <[email protected]>",
"Randy Stauner <[email protected]>",
"Ricardo Signes <[email protected]>",
+ "Ricardo Signes <[email protected]>",
"Sawyer X <[email protected]>"
],
"x_generated_by_perl" : "v5.32.0",
- "x_serialization_backend" : "Cpanel::JSON::XS version 4.19",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.20",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/META.yml
new/Log-Dispatchouli-2.022/META.yml
--- old/Log-Dispatchouli-2.021/META.yml 2020-08-12 17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/META.yml 2020-08-24 19:50:18.000000000 +0200
@@ -43,7 +43,7 @@
bugtracker: https://github.com/rjbs/Log-Dispatchouli/issues
homepage: https://github.com/rjbs/Log-Dispatchouli
repository: https://github.com/rjbs/Log-Dispatchouli.git
-version: '2.021'
+version: '2.022'
x_Dist_Zilla:
perl:
version: '5.032000'
@@ -190,7 +190,7 @@
-
class: Dist::Zilla::Plugin::Test::ReportPrereqs
name: '@RJBS/Test::ReportPrereqs'
- version: '0.027'
+ version: '0.028'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -333,7 +333,7 @@
branch: ~
changelog: Changes
signed: 0
- tag: '2.021'
+ tag: '2.022'
tag_format: '%v'
tag_message: v%V
Dist::Zilla::Role::Git::Repo:
@@ -430,6 +430,7 @@
- 'Olivier Mengué <[email protected]>'
- 'Randy Stauner <[email protected]>'
- 'Ricardo Signes <[email protected]>'
+ - 'Ricardo Signes <[email protected]>'
- 'Sawyer X <[email protected]>'
x_generated_by_perl: v5.32.0
x_serialization_backend: 'YAML::Tiny version 1.73'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/Makefile.PL
new/Log-Dispatchouli-2.022/Makefile.PL
--- old/Log-Dispatchouli-2.021/Makefile.PL 2020-08-12 17:48:59.000000000
+0200
+++ new/Log-Dispatchouli-2.022/Makefile.PL 2020-08-24 19:50:18.000000000
+0200
@@ -45,7 +45,7 @@
"base" => 0,
"lib" => 0
},
- "VERSION" => "2.021",
+ "VERSION" => "2.022",
"test" => {
"TESTS" => "t/*.t"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/README
new/Log-Dispatchouli-2.022/README
--- old/Log-Dispatchouli-2.021/README 2020-08-12 17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/README 2020-08-24 19:50:18.000000000 +0200
@@ -1,5 +1,5 @@
This archive contains the distribution Log-Dispatchouli,
-version 2.021:
+version 2.022:
a simple wrapper around Log::Dispatch
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Log-Dispatchouli-2.021/lib/Log/Dispatchouli/Global.pm
new/Log-Dispatchouli-2.022/lib/Log/Dispatchouli/Global.pm
--- old/Log-Dispatchouli-2.021/lib/Log/Dispatchouli/Global.pm 2020-08-12
17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/lib/Log/Dispatchouli/Global.pm 2020-08-24
19:50:18.000000000 +0200
@@ -2,7 +2,7 @@
use warnings;
package Log::Dispatchouli::Global;
# ABSTRACT: a system for sharing a global, dynamically-scoped logger
-$Log::Dispatchouli::Global::VERSION = '2.021';
+$Log::Dispatchouli::Global::VERSION = '2.022';
use Carp ();
use Log::Dispatchouli;
use Scalar::Util ();
@@ -280,7 +280,7 @@
=head1 VERSION
-version 2.021
+version 2.022
=head1 DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/lib/Log/Dispatchouli/Proxy.pm
new/Log-Dispatchouli-2.022/lib/Log/Dispatchouli/Proxy.pm
--- old/Log-Dispatchouli-2.021/lib/Log/Dispatchouli/Proxy.pm 2020-08-12
17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/lib/Log/Dispatchouli/Proxy.pm 2020-08-24
19:50:18.000000000 +0200
@@ -2,7 +2,7 @@
use warnings;
package Log::Dispatchouli::Proxy;
# ABSTRACT: a simple wrapper around Log::Dispatch
-$Log::Dispatchouli::Proxy::VERSION = '2.021';
+$Log::Dispatchouli::Proxy::VERSION = '2.022';
use Params::Util qw(_ARRAY0 _HASH0);
#pod =head1 DESCRIPTION
@@ -149,7 +149,7 @@
=head1 VERSION
-version 2.021
+version 2.022
=head1 DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/lib/Log/Dispatchouli.pm
new/Log-Dispatchouli-2.022/lib/Log/Dispatchouli.pm
--- old/Log-Dispatchouli-2.021/lib/Log/Dispatchouli.pm 2020-08-12
17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/lib/Log/Dispatchouli.pm 2020-08-24
19:50:18.000000000 +0200
@@ -2,7 +2,7 @@
use warnings;
package Log::Dispatchouli;
# ABSTRACT: a simple wrapper around Log::Dispatch
-$Log::Dispatchouli::VERSION = '2.021';
+$Log::Dispatchouli::VERSION = '2.022';
use Carp ();
use File::Spec ();
use Log::Dispatch;
@@ -147,19 +147,11 @@
: ('stderr');
};
- my $pid_prefix = exists $arg->{log_pid} ? $arg->{log_pid} : 1;
-
- my $log = Log::Dispatch->new(
- $pid_prefix
- ? (
- callbacks => sub {
- "[$$] ". {@_}->{message}
- },
- )
- : ()
- );
-
- my $self = bless { dispatcher => $log } => $class;
+ my $log = Log::Dispatch->new;
+ my $self = bless {
+ dispatcher => $log,
+ log_pid => (exists $arg->{log_pid} ? $arg->{log_pid} : 1),
+ } => $class;
if ($arg->{to_file}) {
require Log::Dispatch::File;
@@ -183,11 +175,19 @@
mode => 'append',
callbacks => do {
if (my $format = $arg->{file_format}) {
- sub { $format->({@_}->{message}) }
+ sub {
+ my $message = {@_}->{message};
+ $message = "[$$] $message" if $self->{log_pid};
+ $format->($message)
+ };
} else {
# The time format returned here is subject to change. -- rjbs,
# 2008-11-21
- sub { (localtime) . ' ' . {@_}->{message} . "\n" }
+ sub {
+ my $message = {@_}->{message};
+ $message = "[$$] $message" if $self->{log_pid};
+ (localtime) . " $message\n";
+ };
}
},
)
@@ -210,6 +210,8 @@
name => 'self',
min_level => 'debug',
array => $self->{events},
+ ($self->{log_pid} ? (callbacks => sub { "[$$] ". {@_}->{message} })
+ : ())
),
);
}
@@ -240,12 +242,16 @@
my $name = "std$dest";
my $code = sub {
return if $_[0]->dispatcher->output($name);
+
+ my $callback = $_[0]->{log_pid} ? sub { "[$$] " . ({@_}->{message}) . "\n"
}
+ : sub { ({@_}->{message}) . "\n"
};
+
$_[0]->dispatcher->add(
$_[0]->stdio_dispatcher_class->new(
name => "std$dest",
min_level => 'debug',
stderr => ($dest eq 'err' ? 1 : 0),
- callbacks => sub { +{@_}->{message} . "\n" },
+ callbacks => $callback,
($_[0]{quiet_fatal}{"std$dest"} ? (max_level => 'info') : ()),
),
);
@@ -265,7 +271,7 @@
min_level => 'debug',
facility => $arg{facility},
ident => $arg{ident},
- logopt => 'pid',
+ logopt => ($self->{log_pid} ? 'pid' : ''),
socket => $arg{socket} || 'native',
callbacks => sub {
( my $m = {@_}->{message} ) =~ s/\n/<LF>/g;
@@ -733,7 +739,7 @@
=head1 VERSION
-version 2.021
+version 2.022
=head1 SYNOPSIS
@@ -1130,6 +1136,10 @@
=item *
+Ricardo Signes <[email protected]>
+
+=item *
+
Sawyer X <[email protected]>
=back
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Log-Dispatchouli-2.021/t/00-report-prereqs.t
new/Log-Dispatchouli-2.022/t/00-report-prereqs.t
--- old/Log-Dispatchouli-2.021/t/00-report-prereqs.t 2020-08-12
17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/t/00-report-prereqs.t 2020-08-24
19:50:18.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use warnings;
-# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028
use Test::More tests => 1;
@@ -188,6 +188,6 @@
);
}
-pass;
+pass('Reported prereqs');
# vim: ts=4 sts=4 sw=4 et:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Log-Dispatchouli-2.021/xt/release/changes_has_content.t
new/Log-Dispatchouli-2.022/xt/release/changes_has_content.t
--- old/Log-Dispatchouli-2.021/xt/release/changes_has_content.t 2020-08-12
17:48:59.000000000 +0200
+++ new/Log-Dispatchouli-2.022/xt/release/changes_has_content.t 2020-08-24
19:50:18.000000000 +0200
@@ -2,7 +2,7 @@
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '2.021';
+my $newver = '2.022';
my $trial_token = '-TRIAL';
my $encoding = 'UTF-8';