Skip to content

Commit

Permalink
Support enable logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Nov 28, 2024
1 parent 18c6930 commit 06e3d30
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config.sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"platform": "platform",
"default_max_upload_avatar_size_in_bytes": 1000000,
"dev_mode": false,
"qr_code_download_url": "https://sign-up.twake.app/download/chat"
"qr_code_download_url": "https://sign-up.twake.app/download/chat",
"enable_logs": false
}
4 changes: 3 additions & 1 deletion docs/configurations/config_web_app_for_public_platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ in [config.sample.json](https://github.com/linagora/twake-on-matrix/blob/main/co
"platform": "platform"
"default_max_upload_avatar_size_in_bytes": 1000000,
"dev_mode": false,
"qr_code_download_url": "https://example.com/"
"qr_code_download_url": "https://example.com/",
"enable_logs": true
}
```

Expand All @@ -49,5 +50,6 @@ in [config.sample.json](https://github.com/linagora/twake-on-matrix/blob/main/co
- `default_max_upload_avatar_size_in_bytes`: Default max upload avatar size
- `dev_mode`: Enable to run app in IDE,
- `qr_code_download_url`: URL generate QR code to download app
- `enable_logs`: Enable logs

If you want to disable it, please change the value or remove this from `config.sample.json`
3 changes: 3 additions & 0 deletions lib/config/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,8 @@ abstract class AppConfig {
if (json['qr_code_download_url'] is String) {
qrCodeDownloadUrl = json['qr_code_download_url'];
}
if (json['enable_logs'] is bool) {
DebugUtils.enableLogs = json['enable_logs'];
}
}
}
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ packages:
description:
path: "."
ref: main
resolved-ref: a498051a8a7e41a35bde65f37c25add3f808b929
resolved-ref: "9353b6d6b6c1b9cc9e9a9290ffd0c777c6a0b479"
url: "https://github.com/linagora/dart_matrix_api_lite.git"
source: git
version: "1.7.4"
Expand Down

0 comments on commit 06e3d30

Please sign in to comment.