diff --git a/Sources/LoggingELK/LogstashLogHandler+Uploading.swift b/Sources/LoggingELK/LogstashLogHandler+Uploading.swift index 559dce8..2bd5df8 100644 --- a/Sources/LoggingELK/LogstashLogHandler+Uploading.swift +++ b/Sources/LoggingELK/LogstashLogHandler+Uploading.swift @@ -77,7 +77,7 @@ extension LogstashLogHandler { ) } - // Wait until all HTTP requests finished + // Wait until all HTTP requests finished, then signal waiting threads _ = EventLoopFuture .whenAllComplete(pendingHTTPRequests, on: self.eventLoopGroup.next()) .map { results in diff --git a/Sources/LoggingELK/LogstashLogHandler.swift b/Sources/LoggingELK/LogstashLogHandler.swift index 1ed6998..de2156a 100644 --- a/Sources/LoggingELK/LogstashLogHandler.swift +++ b/Sources/LoggingELK/LogstashLogHandler.swift @@ -112,7 +112,7 @@ public struct LogstashLogHandler: LogHandler { // Set a "super-secret" metadata value to validate that the backgroundActivityLogger // doesn't use the LogstashLogHandler as a logging backend - // Currently, this behavior isn't even possible, but maybe in future versions of the swift-log package + // Currently, this behavior isn't even possible in production, but maybe in future versions of the swift-log package self[metadataKey: "super-secret-is-a-logstash-loghandler"] = .string("true") // Check if backgroundActivityLogger doesn't use the LogstashLogHandler as a logging backend