Skip to content

Commit

Permalink
Use #file instead of #fileID to avoid including the full path in the …
Browse files Browse the repository at this point in the history
…compiled binary (#4605)
  • Loading branch information
MarkVillacampa authored Dec 17, 2024
1 parent 936d66a commit 9260189
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions RevenueCatUI/Helpers/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enum Logger {

static func verbose(
_ text: CustomStringConvertible,
file: String = #file,
file: String = #fileID,
function: String = #function,
line: UInt = #line
) {
Expand All @@ -35,7 +35,7 @@ enum Logger {

static func debug(
_ text: CustomStringConvertible,
file: String = #file,
file: String = #fileID,
function: String = #function,
line: UInt = #line
) {
Expand All @@ -50,7 +50,7 @@ enum Logger {

static func warning(
_ text: CustomStringConvertible,
file: String = #file,
file: String = #fileID,
function: String = #function,
line: UInt = #line
) {
Expand All @@ -65,7 +65,7 @@ enum Logger {

static func error(
_ text: CustomStringConvertible,
file: String = #file,
file: String = #fileID,
function: String = #function,
line: UInt = #line
) {
Expand All @@ -81,7 +81,7 @@ enum Logger {
private static func log(
_ text: CustomStringConvertible,
_ level: LogLevel,
file: String = #file,
file: String = #fileID,
function: String = #function,
line: UInt = #line
) {
Expand Down
4 changes: 2 additions & 2 deletions Sources/Error Handling/Assertions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Foundation
func RCTestAssert(
_ condition: @autoclosure () -> Bool,
_ message: @autoclosure () -> String,
file: StaticString = #file,
file: StaticString = #fileID,
line: UInt = #line
) {
#if DEBUG
Expand All @@ -32,7 +32,7 @@ func RCTestAssert(
@inline(__always)
func RCTestAssertNotMainThread(
function: StaticString = #function,
file: StaticString = #file,
file: StaticString = #fileID,
line: UInt = #line
) {
#if DEBUG
Expand Down

0 comments on commit 9260189

Please sign in to comment.