R
R
Ruslan2016-11-07 12:29:04
Yii
Ruslan, 2016-11-07 12:29:04

How to disable log and debugger in Yii2 console?

I run console commands, for example, processing commands received via ZMQ, with each next received command (the same command, for example, add a record to mysql), the memory used by the running script increases. I suspect that the logger can work, I looked at the documentation, I tried to set something up myself, it doesn’t work, the memory goes somewhere. Can someone come across or have ideas how to calculate, prevent.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-11-07
@qonand

You are right, because of the logger, there may well be a feeling that memory is leaking. This is due to the fact that the logger immediately writes messages to the hard disk not immediately, but as the specified message limit is reached. You can read more about how the logger works and how to make an instant recording to a hard disk here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question