Skip to content

Commit

Permalink
Improve logger. Change deploy version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Medyuho committed Apr 24, 2021
1 parent a153a24 commit 0e6f59f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MultiSoundChanger.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
Expand Down Expand Up @@ -497,7 +497,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down
5 changes: 4 additions & 1 deletion MultiSoundChanger/Sources/Utils/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ enum Logger {
}

static func debug(_ string: String) {
outPrint(symbol: .debug, string: string)
outAndFilePrint(symbol: .debug, string: string)
}

static func warning(_ string: String) {
Expand Down Expand Up @@ -116,6 +116,9 @@ enum Logger {
return
}
isFirstLog = false
guard FileManager.default.fileExists(atPath: url.path) else {
return
}
try FileManager.default.removeItem(at: url)
}

Expand Down

0 comments on commit 0e6f59f

Please sign in to comment.