From: Robert 'phaylon' Sedlacek Date: Wed, 3 Oct 2012 17:02:06 +0000 (+0000) Subject: only log update message when we're actually updating X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ac3652dc1ed6e018b72f330659e2825ac04d9d8b;p=scpubgit%2FSystem-Introspector-Report.git only log update message when we're actually updating --- diff --git a/lib/System/Introspector/Report/Publish/MediaWiki.pm b/lib/System/Introspector/Report/Publish/MediaWiki.pm index d22ee8a..4ff049f 100644 --- a/lib/System/Introspector/Report/Publish/MediaWiki.pm +++ b/lib/System/Introspector/Report/Publish/MediaWiki.pm @@ -93,7 +93,6 @@ sub _publish_page { log_trace { "Skipping page '$page_name': No reports to publish" }; return 1; } - log_debug { "Updating page '$page_name'" }; my $do_create = $options->{create}; return try { my $page = $self->get_page($page_name); @@ -106,6 +105,7 @@ sub _publish_page { log_trace { "Not pushing page '$page_name': No changes" }; return 1; } + log_debug { "Updating page '$page_name'" }; $self->put_page($page); return 1; }