-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid making db connection when logging about database connection
For various reasons, sometimes a database would not be possible. Our file logger before this commit has a function call that relies on a db connection that is ironic and creates some kind of chicken and egg scenario. This commit, resolves that. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
*/ | ||
require_once __DIR__ . '/lib/versioncheck.php'; | ||
|
||
|
||
try { | ||
require_once __DIR__ . '/lib/base.php'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1165,6 +1165,7 @@ protected static function handleAuthHeaders(): void { | |
} | ||
} | ||
} | ||
|
||
} | ||
|
||
OC::init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters