Skip to content

Commit

Permalink
Added flag for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed Oct 26, 2020
1 parent bfafcb6 commit 65782be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -12,6 +12,7 @@ services:
- MYSQL_USER=ritsoftv2
- MYSQL_PASSWORD=ritsoftv2
- MYSQL_DB=ritsoftv2
# - DEBUG_APP=true # Uncomment to enable error reporting
networks:
- default
database:
Expand Down
4 changes: 2 additions & 2 deletions ritsoftv2/header.php
@@ -1,8 +1,8 @@
<?php
session_start();
ob_start();
error_reporting(0);

error_reporting(getenv("MYSQL_USER") ? E_ALL : 0);
ini_set('display_errors', getenv("MYSQL_USER") ? '1' : '0');
?>
<!DOCTYPE html>
<html lang="en">
Expand Down

0 comments on commit 65782be

Please sign in to comment.