Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
F
Feature request
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Community
  • Feature request
  • Issues
  • #12

Closed
Open
Created Nov 28, 2018 by bgm@bgmMaintainer

Civi::log()->debug() should only log if debugging is enabled

Currently, Civi::log()->debug() always logs to the ConfigAndLog (text log files), no matter what the debug_enabled setting is set to.

I would like to be able to leave some debug statements in my extension, so that it is easier to get more information about what happened, without running a debugger or temporarily inserting debug statements.

Grepping in core, only CRM/Core/Payment/PayPalIPN.php and CRM/Core/Payment/PayPalProIPN.php seem to be using Civi::log()->debug() and it seems indeed like debug info.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None