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

Disable query logging by default #89

Merged
merged 2 commits into from
Jul 10, 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Hi.Events is designed to help you create, manage, and sell tickets for events of
- ⏪ **Full and Partial Refund Support:** Manage full and partial refunds with ease.
- 📧 **Email Notifications:** Keep attendees informed with automated email notifications.
- 📱 **Mobile-Responsive:** Enjoy a seamless experience on any device.
- 🌐 **Multi-Language Support:** Support for multiple languages - `Coming Soon!`
- 🌐 **Multi-Language Support:** Support for multiple languages (English, Português, Español, 中文 (Zhōngwén), Deutsch, Français)
- 🎉 **And much more!**

## 🚀 Getting Started
Expand Down
1 change: 1 addition & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ APP_NAME=Hi.Events
APP_ENV=local
APP_KEY=base64:DwMidgIu8YVSEg0BLMrh5JS2dk1POpCn3rvDaZk3fEQ=
APP_DEBUG=true
APP_LOG_QUERIES=false
APP_URL=http://localhost
APP_PORT=1234
APP_FRONTEND_URL=https://localhost:8443
Expand Down
2 changes: 1 addition & 1 deletion backend/app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function register(): void
*/
public function boot(): void
{
if (env('APP_DEBUG') === true) {
if (env('APP_DEBUG') === true && env('APP_LOG_QUERIES') === true && !app()->isProduction()) {
DB::listen(
static function ($query) {
File::append(
Expand Down
Loading