File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
MultiSoundChanger/Sources/Utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ enum Logger {
1515 case warning = " 🟠 "
1616 case error = " 🔴 "
1717 }
18-
18+
1919 private enum Symbol : String {
2020 case newLine = " \n "
2121 }
@@ -25,7 +25,7 @@ enum Logger {
2525 case dataError
2626 }
2727
28- private static var isFirstLog = true
28+ private static var isLogFileRemoved = false
2929
3030 private static var bundleIdentifier : String {
3131 guard let bundleIdentifier = Bundle . main. bundleIdentifier else {
@@ -112,10 +112,10 @@ enum Logger {
112112 }
113113
114114 private static func removeLogFileIfNeeded( url: URL ) throws {
115- guard isFirstLog else {
115+ guard !isLogFileRemoved else {
116116 return
117117 }
118- isFirstLog = false
118+ isLogFileRemoved = true
119119 guard FileManager . default. fileExists ( atPath: url. path) else {
120120 return
121121 }
You can’t perform that action at this time.
0 commit comments