File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+ {
8
+ "type" : " lldb" ,
9
+ "request" : " launch" ,
10
+ "name" : " Debug" ,
11
+ "program" : " ${workspaceFolder}/<executable file>" ,
12
+ "args" : [],
13
+ "cwd" : " ${workspaceFolder}"
14
+ }
15
+ ]
16
+ }
Original file line number Diff line number Diff line change
1
+ {}
Original file line number Diff line number Diff line change @@ -734,7 +734,7 @@ public enum LoggingSystem {
734
734
/// but an attempt was made to set a metadata provider on such handler. In order to avoid flooding the system with
735
735
/// warnings such warning is only emitted in debug mode, and even then at-most once for a handler type.
736
736
internal static func warnOnceLogHandlerNotSupportedMetadataProvider< Handler: LogHandler > ( _ type: Handler . Type ) -> Bool {
737
- self . _warnOnceBox. warnOnceLogHandlerNotSupportedMetadataProvider ( type: type)
737
+ return self . _warnOnceBox. warnOnceLogHandlerNotSupportedMetadataProvider ( type: type)
738
738
}
739
739
#endif
740
740
@@ -1515,8 +1515,9 @@ private final class WarnOnceBox {
1515
1515
private let lock : Lock = Lock ( )
1516
1516
private var warnOnceLogHandlerNotSupportedMetadataProviderPerType : [ ObjectIdentifier : Bool ] = [ : ]
1517
1517
1518
+ @discardableResult
1518
1519
func warnOnceLogHandlerNotSupportedMetadataProvider< Handler: LogHandler > ( type: Handler . Type ) -> Bool {
1519
- self . lock. withLock {
1520
+ return self . lock. withLock {
1520
1521
let id = ObjectIdentifier ( type)
1521
1522
if warnOnceLogHandlerNotSupportedMetadataProviderPerType [ id] ?? false {
1522
1523
return false // don't warn, it was already warned about
You can’t perform that action at this time.
0 commit comments