Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support enable logs #2161

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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