diff --git a/README.md b/README.md index 02046cc..9313d29 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ You may also want to supply any of the following variables to override default b - `HOST_NAME` - (*default:* `localhost`) used as Apache `ServerName` - `ADMIN_EMAIL` - (*default:* `admin@davical.example.com`) [email displayed on login page and in "From" for password reset emails](https://wiki.davical.org/index.php?title=Configuration/settings/admin_email) - `TZ` - (*default:* `UTC`) system [timezone name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) +- `DAVICAL_DEBUG_ALL` - (*default: none*) set to "true" to enable debug logs for all events #### DB Creation/Migrations diff --git a/config/config.php b/config/config.php index 72a1d0b..3c45d20 100644 --- a/config/config.php +++ b/config/config.php @@ -164,7 +164,9 @@ * There are many different types of debug messages (for more details see * debug-config.php), but this will log them all: */ -// $c->dbg["ALL"] = 1; +if (getenv("DAVICAL_DEBUG_ALL") == "true") { + $c->dbg["ALL"] = 1; +} /** * While the above setting will quickly fill your PHP error log and should best