Skip to content

Commit

Permalink
fix: log warning only when instance was already initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Jan 18, 2024
1 parent 0243576 commit fa1771a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ public object ParselyTracker {
context: Context,
dryRun: Boolean = false,
) {
Logging.log("Parse.ly has been already initialized. Previous configuration will be overwritten.")
if (instance != null) {
Logging.log("Parse.ly has been already initialized. Previous configuration will be overwritten.")
}
instance = ParselyTrackerInternal(siteId, flushInterval, context, dryRun)
}
}

0 comments on commit fa1771a

Please sign in to comment.