use ApplicationSupportDirectory instead of tempDirectory for logs
This commit is contained in:
parent
79d639b2c6
commit
876b8e1aaf
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ Future _runWithLogs(Function() function, {String prefix = ""}) async {
|
|||
await SuperLogging.main(
|
||||
LogConfig(
|
||||
body: function,
|
||||
logDirPath: (await getTemporaryDirectory()).path + "/logs",
|
||||
logDirPath: (await getApplicationSupportDirectory()).path + "/logs",
|
||||
maxLogFiles: 5,
|
||||
sentryDsn: kDebugMode ? kSentryDebugDSN : kSentryDSN,
|
||||
tunnel: kSentryTunnel,
|
||||
|
|
Loading…
Reference in a new issue