• Resolved therealgilles

    (@chamois_blanc)


    IS it possible to disable these info messages filling up the debug.log file?

    [02-May-2022 10:33:04 UTC] [INFO] : Lock (updraft_lock_updraftcentral_cron, wp_options) acquired
    [02-May-2022 10:33:04 UTC] [INFO] : Lock option (updraft_lock_updraftcentral_cron, wp_options) released

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Apologies for the delay.

    Let me check with our developers if possible.

    Thanks,
    Bryle

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    These extra messages are logged because you have the WP_DEBUG debugging constant turned on. If you turn it off, they will not be logged.

    David

    Thread Starter therealgilles

    (@chamois_blanc)

    Hi David, thanks for the reply. I have WP_DEBUG turned on because it’s useful for a lot of reasons:
    – I use error_log() for debugging.
    – I get notices about deprecated functions/hooks…
    – I get notices about database errors

    The extra messages are logged because I have WP_DEBUG turned on AND the plugin code uses error_log() to output them. My understanding is that error_log() should be reserved for reporting errors or unusual behavior, not regular info messages. You may disagree.

    I think it would be better if these informative messages were output only if a plugin specific variable is turned on. At least that’s my 2 cents ??

    • This reply was modified 2 years, 6 months ago by therealgilles.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Info messages in debug.log file’ is closed to new replies.