• Resolved redbullpeter

    (@redbullpeter)


    Hi,

    Loving in the plugin but as soon as I activated the Jetpack plugin the following message floods the feed every few seconds: Updated jetpack_migration “sidebars_widgets”

    Is there a way to suppress this or, more generically, other “not interesting” messages?

    Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter redbullpeter

    (@redbullpeter)

    OK I added an exception to not log this type of event. Here’s the diff:

    --- a/loggers/SimplePostLogger.php
    +++ b/loggers/SimplePostLogger.php
    @@ -342,6 +342,11 @@ class SimplePostLogger extends SimpleLogger
     			$ok_to_log = true;
     		}
     
    +		// Don't log jetpack_migration
    +		if (get_post_type( $post ) == "jetpack_migration") {
    +			$ok_to_log = false;
    +		}
    +
     		// Don't log revisions
     		if ( wp_is_post_revision( $post ) ) {
     			$ok_to_log = false;
    Plugin Author P?r Thernstr?m

    (@eskapism)

    Thanks for the bug report + possible soliution, will see what I can do!

    Same here. Could you advise where to add above solution?

    In my situation this not only flooding history by also using abnormal number of resources on hosting account.

    • This reply was modified 7 years, 8 months ago by Dariusz.
    Thread Starter redbullpeter

    (@redbullpeter)

    • Login as admin and go to the menu: Plugins>Editor
    • Select the plugin Simple History in drop down menu
    • Select the file: simple-history/loggers/SimplePostLogger.php
    • Scroll down to line 342 or search for “Don’t log revisions”
    • Add all the lines with the “+” in front of it but without the “+”
    • This reply was modified 7 years, 7 months ago by stephencottontail. Reason: added missing ul tag

    Thanks, all clear apart

    Add all the lines with the “+” in front of it but without the “+”

    Got it. Thanks.

    Plugin Author P?r Thernstr?m

    (@eskapism)

    Can you check if the just released version 2.18 solves this?

    Thread Starter redbullpeter

    (@redbullpeter)

    Yup resolves the problem.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Updated jetpack_migration “sidebars_widgets”’ is closed to new replies.