Skip to content

Move Log Directory + Fix Permissions - #128

Merged
n7studios merged 4 commits into
mainfrom
move-log-location
Aug 28, 2026
Merged

Move Log Directory + Fix Permissions#128
n7studios merged 4 commits into
mainfrom
move-log-location

Conversation

@n7studios

Copy link
Copy Markdown
Contributor

Summary

Testing

  • LogTest integration tests added for the ConvertKit_Log class.

Checklist

@n7studios n7studios self-assigned this Aug 25, 2026
@n7studios n7studios added the enhancement New feature or request label Aug 25, 2026
@n7studios
n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team August 25, 2026 05:06
@n7studios n7studios added this to the 2.6.1 milestone Aug 25, 2026
@n7studios
n7studios marked this pull request as ready for review August 25, 2026 05:06

@noelherrick noelherrick left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does the plugin already initialize the log in its own initialization? I'm just wondering if we need to explicitly call the legacy path deletion. Secondly, do we want to move the logs vs. delete them?

Comment thread src/class-convertkit-log.php Outdated
@n7studios

Copy link
Copy Markdown
Contributor Author

Does the plugin already initialize the log in its own initialization? I'm just wondering if we need to explicitly call the legacy path deletion.

Plugins (except WooCommerce, which uses WooCommerce's logging system) initialize this class for logging, which would trigger the legacy path deletion. I'd prefer to have that logic here than in each individual Plugin.

Secondly, do we want to move the logs vs. delete them?

Deletion is fine. These logs aren't designed to be long term - only when a creator reaches out for support and we request they enable debugging. We improve security by preventing bad actors guessing the log file name due to using wp_hash for the filename, which is based on the WordPress salt key that's set in wp-config.php.

From Kit/convertkit-wordpress#1174 (review)

should we have a method in the libraries for uninstall

Plugin functions typically aren't available on uninstall.php (example), meaning these libraries might not be available, which is why these libraries don't include such a method - otherwise I'd follow how we call legacy path deletion above from the libraries. Therefore, each plugin is responsible for deleting the log files on Plugin uninstallation.

@noelherrick noelherrick left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for your responses!

@n7studios
n7studios merged commit b8ba24a into main Aug 28, 2026
20 of 23 checks passed
@n7studios
n7studios deleted the move-log-location branch August 28, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants