only log update message when we're actually updating
Robert 'phaylon' Sedlacek [Wed, 3 Oct 2012 17:02:06 +0000 (17:02 +0000)]
lib/System/Introspector/Report/Publish/MediaWiki.pm

index d22ee8a..4ff049f 100644 (file)
@@ -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;
   }