Skip to content

Commit 573c99b

Browse files
authored
fix: start time warning log now uses float wildcard for string interpolation of time interval (#393)
**Requirements** - [ ] I have added test coverage for new or changed functionality N/A - [x] I have followed the repository's [pull request submission guidelines](../blob/v9/CONTRIBUTING.md#submitting-pull-requests) - [ ] I have validated my changes against all supported platform versions I do not have a Mac with Apple Silicon which was the original source of this report, will have to have customer verify. **Related issues** SC-246543
1 parent f070af9 commit 573c99b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LaunchDarkly/LaunchDarkly/LDClient.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public class LDClient {
355355
*/
356356
public func identify(context: LDContext, timeout: TimeInterval, completion: @escaping ((_ result: IdentifyResult) -> Void)) {
357357
if timeout > LDClient.longTimeoutInterval {
358-
os_log("%s LDClient.identify was called with a timeout greater than %d seconds. We recommend a timeout of less than %s seconds.", log: config.logger, type: .debug, self.typeName(and: #function), LDClient.longTimeoutInterval, LDClient.longTimeoutInterval)
358+
os_log("%s LDClient.identify was called with a timeout greater than %f seconds. We recommend a timeout of less than %f seconds.", log: config.logger, type: .info, self.typeName(and: #function), LDClient.longTimeoutInterval, LDClient.longTimeoutInterval)
359359
}
360360

361361
var cancel = false
@@ -789,7 +789,7 @@ public class LDClient {
789789
*/
790790
public static func start(config: LDConfig, context: LDContext? = nil, startWaitSeconds: TimeInterval, completion: ((_ timedOut: Bool) -> Void)? = nil) {
791791
if startWaitSeconds > LDClient.longTimeoutInterval {
792-
os_log("%s LDClient.start was called with a timeout greater than %d seconds. We recommend a timeout of less than %s seconds.", log: config.logger, type: .debug, self.typeName(and: #function), LDClient.longTimeoutInterval, LDClient.longTimeoutInterval)
792+
os_log("%s LDClient.start was called with a timeout greater than %f seconds. We recommend a timeout of less than %f seconds.", log: config.logger, type: .info, self.typeName(and: #function), LDClient.longTimeoutInterval, LDClient.longTimeoutInterval)
793793
}
794794

795795
start(serviceFactory: nil, config: config, context: context, startWaitSeconds: startWaitSeconds, completion: completion)

0 commit comments

Comments
 (0)