Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kostiakoval committed Nov 21, 2015
1 parent fa11559 commit 543e609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/SpeedLog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public struct SpeedLog {

public static func print(items: Any..., separator: String = " ", terminator: String = "\n", _ file: String = __FILE__, _ function: String = __FUNCTION__, _ line: Int = __LINE__) {
#if ENABLE_LOG
let prefix = printStringForMode(file, function: function, line: line)
let prefix = modePrefix(file, function: function, line: line)
let stringItem = items.map {"\($0)"} .joinWithSeparator(separator)
Swift.print("\(prefix)\(stringItem)", terminator: terminator)
#endif
Expand All @@ -57,7 +57,7 @@ extension SpeedLog {
/**
Creates an output string for the currect log Mode
*/
static func printStringForMode(file: String, function: String, line: Int) -> String {
static func modePrefix(file: String, function: String, line: Int) -> String {
var result: String = ""
if mode.contains(.FileName) {
let filename = file.lastPathComponent.stringByDeletingPathExtension
Expand Down
2 changes: 1 addition & 1 deletion Tests/SpeedLogTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension SpeedLogTests {

func logForMode(mode: LogMode) -> String {
SpeedLog.mode = mode
return SpeedLog.printStringForMode("File", function: "FuncA", line: 10)
return SpeedLog.modePrefix("File", function: "FuncA", line: 10)
}
}

Expand Down

0 comments on commit 543e609

Please sign in to comment.