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(
|
await SuperLogging.main(
|
||||||
LogConfig(
|
LogConfig(
|
||||||
body: function,
|
body: function,
|
||||||
logDirPath: (await getTemporaryDirectory()).path + "/logs",
|
logDirPath: (await getApplicationSupportDirectory()).path + "/logs",
|
||||||
maxLogFiles: 5,
|
maxLogFiles: 5,
|
||||||
sentryDsn: kDebugMode ? kSentryDebugDSN : kSentryDSN,
|
sentryDsn: kDebugMode ? kSentryDebugDSN : kSentryDSN,
|
||||||
tunnel: kSentryTunnel,
|
tunnel: kSentryTunnel,
|
||||||
|
|
Loading…
Add table
Reference in a new issue