Skip to content

Commit

Permalink
print only first 20 symbols to avoid problem with xcode console(it su…
Browse files Browse the repository at this point in the history
…cks with long string)
  • Loading branch information
kosyloa committed Nov 29, 2023
1 parent 5ac0d14 commit bad731d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Samples/Tools/SubscriptionUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class Subscription {
source: String? = nil)
where O: DXEventListener, O: Hashable {
print("""
Create subscription to \(address) for \(types):\(symbols) with properties:\(properties) and time \(time ?? "---")
Create subscription to \(address) for \(types): \
\(symbols.count > 20 ? Array(symbols[0..<20]) : symbols) with properties:\(properties) and time \(time ?? "---")
""")
endpoint = try? DXEndpoint
.builder()
Expand Down

0 comments on commit bad731d

Please sign in to comment.