Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4722 Zobrazení

I have the Odoo IoT box (what I really did was using a Raspberry Pi 4 and flashed an image for 20.06 version of IoT box). I am logged by ssh to it. It's there any way to see the odoo 'live log', the same I see when I run odoo locally?

I am developing a new driver and inside the init and supported functions I am using _logger.error or _logger.info to print some data to check and I would like to see it. I tested checking the content on /var/log/odoo/odoo-server-log but its empty.

Avatar
Zrušit
Nejlepší odpověď

Hello,


First you need to stop the service odoo ("sudo service odoo stop")

And after you can execute the same command of the service (it depend of the version of your DB)

You can find this command here /etc/init.d/odoo

Avatar
Zrušit
Autor Nejlepší odpověď

I found a way:

1. Make the IoT Box file system writeable `sudo mount -o remount,rw /`

2. Change the log level in the Odoo configuration file at /home/pi/odoo/addons/point_of_sale/tools/posbox/configuration/odoo.conf to `log_level = debug`

3. Restart odoo service using `sudo service odoo restart`

4. You should be able to see the odoo logs using `tail -f /var/log/odoo/odoo-server.log`

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 16
8999
5
čvc 24
38467
1
bře 25
9930
2
úno 19
6321
1
srp 16
10456