-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #363 from tayloraswift/frontend-accessible-logging
Frontend accessible logging
- Loading branch information
Showing
34 changed files
with
654 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
swift --version | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/apple/swift-atomics.git \ | ||
-t 1.2.0 \ | ||
-n swift-atomics \ | ||
-o TestPackages/swift-atomics.bson | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/apple/swift-nio.git \ | ||
-t 2.75.0 \ | ||
-n swift-nio \ | ||
-o TestPackages/swift-nio.bson | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/apple/swift-nio-ssl.git \ | ||
-t 2.29.0 \ | ||
-n swift-nio-ssl \ | ||
-o TestPackages/swift-nio-ssl.bson | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/apple/swift-async-dns-resolver.git \ | ||
-t 0.1.2 \ | ||
-n swift-async-dns-resolver \ | ||
-o TestPackages/swift-async-dns-resolver.bson | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/swiftlang/swift-syntax.git \ | ||
-t 600.0.1 \ | ||
-n swift-syntax \ | ||
-o TestPackages/swift-syntax.bson | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/pointfreeco/swift-snapshot-testing.git \ | ||
-t 1.17.5 \ | ||
-n swift-snapshot-testing \ | ||
-o TestPackages/swift-snapshot-testing.bson | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/swiftlang/indexstore-db.git \ | ||
-t swift-6.0-RELEASE \ | ||
-n indexstore-db \ | ||
-o TestPackages/indexstore-db.bson \ | ||
--Xcxx -I$SWIFT_INSTALLATION/lib/swift \ | ||
--Xcxx -I$SWIFT_INSTALLATION/lib/swift/Block | ||
|
||
ssgc -u $SWIFT_INSTALLATION \ | ||
-r https://github.com/swiftlang/swift-book.git \ | ||
-t swift-5.10-fcs \ | ||
-b book \ | ||
-n swift-book \ | ||
-o TestPackages/swift-book.bson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
swift --version | ||
|
||
ssgc \ | ||
-r https://github.com/apple/swift-atomics.git \ | ||
-t 1.2.0 \ | ||
-n swift-atomics \ | ||
-o TestPackages/swift-atomics.bson | ||
|
||
ssgc \ | ||
-r https://github.com/apple/swift-nio.git \ | ||
-t 2.75.0 \ | ||
-n swift-nio \ | ||
-o TestPackages/swift-nio.bson | ||
|
||
ssgc \ | ||
-r https://github.com/apple/swift-nio-ssl.git \ | ||
-t 2.29.0 \ | ||
-n swift-nio-ssl \ | ||
-o TestPackages/swift-nio-ssl.bson | ||
|
||
ssgc \ | ||
-r https://github.com/apple/swift-async-dns-resolver.git \ | ||
-t 0.1.2 \ | ||
-n swift-async-dns-resolver \ | ||
-o TestPackages/swift-async-dns-resolver.bson | ||
|
||
ssgc \ | ||
-r https://github.com/swiftlang/swift-syntax.git \ | ||
-t 600.0.1 \ | ||
-n swift-syntax \ | ||
-o TestPackages/swift-syntax.bson | ||
|
||
ssgc \ | ||
-r https://github.com/pointfreeco/swift-snapshot-testing.git \ | ||
-t 1.17.5 \ | ||
-n swift-snapshot-testing \ | ||
-o TestPackages/swift-snapshot-testing.bson | ||
|
||
ssgc \ | ||
-r https://github.com/swiftlang/indexstore-db.git \ | ||
-t swift-6.0-RELEASE \ | ||
-n indexstore-db \ | ||
-o TestPackages/indexstore-db.bson | ||
|
||
ssgc \ | ||
-r https://github.com/swiftlang/swift-book.git \ | ||
-t swift-5.10-fcs \ | ||
-b book \ | ||
-n swift-book \ | ||
-o TestPackages/swift-book.bson |
5 changes: 2 additions & 3 deletions
5
Sources/HTTPServer/Logging/Log.Level.swift → Sources/HTTP/HTTP.LogLevel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
extension Log | ||
extension HTTP | ||
{ | ||
@frozen public | ||
enum Level | ||
enum LogLevel:Comparable, Equatable | ||
{ | ||
case debug | ||
case error | ||
case warning | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import HTTP | ||
|
||
extension HTTP | ||
{ | ||
@frozen public | ||
enum ActivityTimeoutError:Error | ||
{ | ||
case connection | ||
case stream | ||
} | ||
} | ||
extension HTTP.ActivityTimeoutError:CustomStringConvertible | ||
{ | ||
public | ||
var description:String | ||
{ | ||
switch self | ||
{ | ||
case .connection: "Connection timed out before peer initiated any streams" | ||
case .stream: "Stream timed out before peer sent any headers" | ||
} | ||
} | ||
} |
Oops, something went wrong.