D
D
Donald_Duck2018-06-09 11:59:25
Laravel
Donald_Duck, 2018-06-09 11:59:25

Why doesn't log_level=error work in laravel?

Hello! I can't figure out why laravel keeps stopping execution when a warning about an undeclared variable occurs. For log_level I set error i.e. debug, info, notice, warning should be ignored, but it keeps throwing exceptions, stopping execution. I tried to set both in env (APP_LOG_LEVEL) and directly in the app config file (log_level). What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Nesmeyanov, 2018-06-09
@Donald_Duck

What am I doing wrong?

You are confusing logging levels with language error messages. The logging level is responsible for cutting the logs that end up in the file so that any debug logs do not litter in the production logs later.
Errors cannot and should not be disabled. If your variable is not declared, this is not a bad larka - these are the hands of the developer from ... Ahem ... Okay. Correct your mistakes in general)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question