Skip to content

Commit

Permalink
Merge pull request #127 from mattcolegate/envCrash
Browse files Browse the repository at this point in the history
Copy env message locally; fix minor compilation warnings
  • Loading branch information
tobespc authored Jun 22, 2017
2 parents 36f1d2e + d822b90 commit 769dce8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions Sources/SwiftBAMDC/SwiftDataCollector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ public class SwiftDataCollectorInit {

var sm:SwiftMetrics

var logLevel : LoggerMessageType = .info

logLevel = self.bamConfig.logLevel

sm = swiftMetricsInstance
self.monitor = sm.monitor()

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftMetrics/SwiftMetrics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private func receiveAgentCoreData(cSourceId: UnsafePointer<CChar>, cSize: CUnsig
let opaquePointer = OpaquePointer(data)
let cstrPointer = UnsafePointer<CChar>(opaquePointer)

let message = String(cString:cstrPointer) ?? ""
let message = String(cString:cstrPointer)
if swiftMon != nil {
swiftMon!.raiseCoreEvent(topic: source, message: message)
}
Expand Down

0 comments on commit 769dce8

Please sign in to comment.