Skip to content

Commit

Permalink
Support enable logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev committed Nov 27, 2024
1 parent e836986 commit d229213
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 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'];
}
}
}
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1893,8 +1893,8 @@ packages:
dependency: "direct overridden"
description:
path: "."
ref: main
resolved-ref: a498051a8a7e41a35bde65f37c25add3f808b929
ref: support-enable-logs
resolved-ref: "0e72d61a4687b7d49a11dd01c7d59024427757db"
url: "https://github.com/linagora/dart_matrix_api_lite.git"
source: git
version: "1.7.4"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ dependency_overrides:
matrix_api_lite:
git:
url: https://github.com/linagora/dart_matrix_api_lite.git
ref: main
ref: support-enable-logs

cider:
link_template:
Expand Down

0 comments on commit d229213

Please sign in to comment.