mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Disable log file for now
This commit is contained in:
parent
53ea5bafee
commit
cea9da9c6d
2 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ fun buildLogWritersToAdd(
|
||||||
) = buildList {
|
) = buildList {
|
||||||
if (!BuildConfig.DEBUG) add(CrashlyticsLogWriter())
|
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"
|
private const val ACTION_DISABLE_INCOGNITO_MODE = "tachi.action.DISABLE_INCOGNITO_MODE"
|
||||||
|
|
|
@ -24,7 +24,7 @@ fun Logger.setupFileLog(logPath: Path, buildType: String? = null): LogWriter {
|
||||||
val date = Clock.System.todayIn(TimeZone.currentSystemDefault())
|
val date = Clock.System.todayIn(TimeZone.currentSystemDefault())
|
||||||
return RollingFileLogWriter(
|
return RollingFileLogWriter(
|
||||||
config = RollingFileLogWriterConfig(
|
config = RollingFileLogWriterConfig(
|
||||||
logFileName = date.toString() + if (buildType != null) "-$buildType-" else "" + ".log",
|
logFileName = date.toString() + if (buildType != null) "-$buildType" else "" + ".log",
|
||||||
logFilePath = logPath,
|
logFilePath = logPath,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue