Skip to content

Commit

Permalink
Changing log calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtursKadikis committed Feb 21, 2023
1 parent d64533a commit d46367a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/src/main/java/ly/count/android/sdk/Countly.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public synchronized Countly init(CountlyConfig config) {
}

if (config.application == null) {
L.w("[Init] Initialising the SDK without providing the application class is deprecated");
L.i("[Init] Initialising the SDK without providing the application class");
}

if (config.deviceID != null && config.deviceID.length() == 0) {
Expand Down
6 changes: 5 additions & 1 deletion sdk/src/main/java/ly/count/android/sdk/CountlyStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,11 @@ public synchronized String getEventsForRequestAndEmptyEventQueue() {
* @param requestStr the connection to be added, ignored if null or empty
*/
@SuppressLint("ApplySharedPref")
public synchronized void addRequest(final String requestStr, final boolean writeInSync) {
public synchronized void addRequest(@NonNull final String requestStr, final boolean writeInSync) {
if (requestStr != null && requestStr.length() > 0) {
final List<String> connections = new ArrayList<>(Arrays.asList(getRequests()));

L.v("[CountlyStore] addRequest, s:[" + writeInSync + "] new q size:[" + (connections.size() + 1) + "] r:[" + requestStr + "]");
if (connections.size() < maxRequestQueueSize) {
//request under max requests, add as normal
connections.add(requestStr);
Expand All @@ -327,6 +329,8 @@ public synchronized void addRequest(final String requestStr, final boolean write
deleteOldestRequest();
addRequest(requestStr, writeInSync);
}
} else {
L.w("[CountlyStore] addRequest, providing null or empty request string");
}
}

Expand Down
2 changes: 0 additions & 2 deletions sdk/src/main/java/ly/count/android/sdk/ModuleSessions.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ public void updateSession() {
return;
}

L.i("[Sessions] Calling 'updateSession'");

updateSessionInternal();
}
}
Expand Down

0 comments on commit d46367a

Please sign in to comment.