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

[Logging] init logger fails if debug=false #31

Closed
jcheron opened this issue Apr 27, 2019 · 0 comments
Closed

[Logging] init logger fails if debug=false #31

jcheron opened this issue Apr 27, 2019 · 0 comments
Assignees
Labels
bug Fixed Fixed bug

Comments

@jcheron
Copy link
Contributor

jcheron commented Apr 27, 2019

Steps

in app/config/config.php, debug mode is deactivated:
"debug"=> false
Logging is initialized in app/config/services.php:
\Ubiquity\log\Logger::init($config);

Expected Result

Logging is disabled.

Actual Result

The following error is generated

Fatal error: Uncaught Error: Call to a member function _warn() on null in ...\vendor\phpmv\ubiquity\src\Ubiquity\log\Logger.php on line 64

Versions

  • Ubiquity framework 2.1.2
  • Ubiquity devtools 1.2.3
  • php 7.2.3
@jcheron jcheron self-assigned this Apr 27, 2019
@jcheron jcheron added the bug label Apr 27, 2019
@jcheron jcheron added the Fixed Fixed bug label Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixed Fixed bug
Projects
None yet
Development

No branches or pull requests

1 participant