Skip to Content
Menu
This question has been flagged
1 Reply
25069 Views

Hi,

I have odoo 11.0 CE running on linux, on virtual machine. The machine gave me recently error message that he is running out of free disk. The machine had 32GB HDD, which should be enough.. 

When I started to investigate, I discovered in directory /var/log/odoo nearly 30GB file called odoo-server.log.

After deleting the file, it came back and in 11 hours grow from 0 to 820MB (no activity in odoo at the same time).

How to disable this growing log file?

Thank you. A.


Avatar
Discard
Best Answer

Hi Arma,

It might be a good idea to first go through the logfile and see if you have no big issues. If this is not the case you can change the configuration of your Odoo environment. There is a parameter called log_level, which depends what type of output should be logged to the Odoo logfile. Navigate to your configuration file, which is usually under /etc/your-odoo-server.config and edit the file. Add in the following line:

log_level = 'warning'

These are the different log_level options available:

  • info

  • debug_rpc

  • warn

  • test

  • critical

  • debug_sql

  • error

  • debug

  • debug_rpc_answer

  • notset

Usually it is good to use warning as those may contain important information about possible issues. If you only want very minimal output when there is a big issue you can set the log_level to error.
Now save the file and restart your Odoo with this configuration:

sudo service your-odoo restart -c /etc/your-odoo-server.config

Regards,
Yenthe

Avatar
Discard