Skip to content

fix: fix debug options#5

Merged
PatryQHyper merged 3 commits into
masterfrom
fix/debug
May 7, 2026
Merged

fix: fix debug options#5
PatryQHyper merged 3 commits into
masterfrom
fix/debug

Conversation

@PatryQHyper

Copy link
Copy Markdown
Member

No description provided.

Copilot AI 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.

Pull request overview

This PR adds a functional “debug mode” toggle so debug logs can be enabled/disabled based on config.yml across the supported platforms (Bukkit/Bungee/Velocity).

Changes:

  • Add setDebugEnabled(boolean) to ItemShopLogger and wire it up during plugin enable.
  • Gate debug() output behind a debugEnabled flag in each platform logger implementation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
itemshopsys-velocity/src/dev/shiza/itemshopsys/velocity/ItemShopVelocityLogger.java Adds a debugEnabled flag and skips debug logging when disabled.
itemshopsys-common/src/dev/shiza/itemshopsys/ItemShopPluginImpl.java Reads config.debug and applies it to the logger during onEnable().
itemshopsys-common/src/dev/shiza/itemshopsys/ItemShopLogger.java Adds a new default setDebugEnabled API.
itemshopsys-bungee/src/dev/shiza/itemshopsys/bungee/ItemShopBungeeLogger.java Adds a debugEnabled flag and skips debug logging when disabled.
itemshopsys-bukkit/src/dev/shiza/itemshopsys/bukkit/ItemShopBukkitLogger.java Adds a debugEnabled flag and skips debug logging when disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

public final class ItemShopBukkitLogger implements ItemShopLogger {

private final Server server;
private boolean debugEnabled;
public final class ItemShopBungeeLogger implements ItemShopLogger {

private final ProxyServer server;
private boolean debugEnabled;
public class ItemShopVelocityLogger implements ItemShopLogger {

private final java.util.logging.Logger logger;
private boolean debugEnabled;
@PatryQHyper PatryQHyper merged commit 1cc5b93 into master May 7, 2026
1 check passed
@PatryQHyper PatryQHyper deleted the fix/debug branch May 7, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants