Skip to content

Allow change of debug log directory#595

Open
florianbrinkmann wants to merge 4 commits intov3from
allow-change-of-debug-log-directory
Open

Allow change of debug log directory#595
florianbrinkmann wants to merge 4 commits intov3from
allow-change-of-debug-log-directory

Conversation

@florianbrinkmann
Copy link
Member

No description provided.

$content_dir = \WP_CONTENT_DIR;
$date = date( 'Y-m-d' ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
$time = date( 'H-i-s' ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
$log_dir = defined( 'ANTISPAM_BEE_DEBUG_MODE_LOG_DIR' ) ? \ANTISPAM_BEE_DEBUG_MODE_LOG_DIR : \WP_CONTENT_DIR;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty long const name, would have preferred something a little shorter, e.g. strip the _MODE. But we should probably keep it consistent with ANTISPAM_BEE_DEBUG_MODE_ENABLED, so I'm fine with either.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, it’s a little long 😬 Because we are not live yet and only two or three people might be using it, I would say let’s change the ANTISPAM_BEE_DEBUG_MODE_ENABLED to ANTISPAM_BEE_DEBUG and the log to ANTISPAM_BEE_DEBUG_DIR?

@stklcode stklcode added this to the 3.0 milestone May 22, 2024
@Zodiac1978 Zodiac1978 added the v3 This issue is for the new version (v3) of the plugin label Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3 This issue is for the new version (v3) of the plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants