fix: Disable log file for now

This commit is contained in:
Ahmad Ansori Palembani 2024-11-22 15:46:22 +07:00
parent 53ea5bafee
commit cea9da9c6d
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 2 additions and 2 deletions

View file

@ -295,7 +295,7 @@ fun buildLogWritersToAdd(
) = buildList {
if (!BuildConfig.DEBUG) add(CrashlyticsLogWriter())
if (logPath != null) add(Logger.setupFileLog(logPath, BuildConfig.BUILD_TYPE))
// if (logPath != null) add(Logger.setupFileLog(logPath, BuildConfig.BUILD_TYPE))
}
private const val ACTION_DISABLE_INCOGNITO_MODE = "tachi.action.DISABLE_INCOGNITO_MODE"

View file

@ -24,7 +24,7 @@ fun Logger.setupFileLog(logPath: Path, buildType: String? = null): LogWriter {
val date = Clock.System.todayIn(TimeZone.currentSystemDefault())
return RollingFileLogWriter(
config = RollingFileLogWriterConfig(
logFileName = date.toString() + if (buildType != null) "-$buildType-" else "" + ".log",
logFileName = date.toString() + if (buildType != null) "-$buildType" else "" + ".log",
logFilePath = logPath,
)
)