Add a log message when donates are enabled

Needed to count the number of users who actually received
the new config.

```
"logs":[{"message":["Donates enabled"],"level":"log","timestamp":1664702669575}]
```

Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
This commit is contained in:
Roman Tsisyk 2022-10-02 13:31:41 +03:00 committed by GitHub
parent 5271453dcd
commit 0c45b20401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,8 @@ export async function handleRequest(request: Request) {
}
if (donatesEnabled) {
// To count enabled donations.
console.log('Donates enabled');
if (request.cf?.country == 'RU') {
response.settings = {
DonateUrl: DONATE_URL_RU,