Skip to content

Conversation

marcin-cebo
Copy link
Contributor

No description provided.

public class AnalyticsService {

public void trackConfigChange(String instanceId, Map<String, Object> configDetail) {
//no need to implement
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this comment?

Copy link
Contributor Author

@marcin-cebo marcin-cebo Oct 3, 2025

Choose a reason for hiding this comment

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

This is part of codeSnippet i.e. AnalyticsService is used in MonitoringLogger that will be presented in logs.
I added this comment to indicate that this is conscious decision to left implementation empty.

What would you do in such case ? Remove comment?

import com.pubnub.api.logging.LogMessageContent;
import com.pubnub.api.logging.LogMessageType;

public class MonitoringLogger implements CustomLogger {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the purpose of this logger?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is code snippet that will be used in docs

timestamp: String,
location: String?
) {
// no need to implement
Copy link
Contributor

Choose a reason for hiding this comment

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

The same here, do we need thee // no need to implement comments?

}

override fun debug(message: LogMessage) {
// todo remove
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I will remove it.

@marcin-cebo marcin-cebo merged commit 282a8c9 into master Oct 6, 2025
7 checks passed
@marcin-cebo marcin-cebo deleted the mc/added_deprecation_log_message branch October 6, 2025 12:41
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