تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
104648 أدوات العرض

I have a server with running odoo. I get error 500 and need to see what's wrong, but for some reason nothing new being written to odoo-server.log file
I connect to server via ssh, the service is running, so it should be possible to see the real-time logging data, like the one which is printed when you run server locally. Is there some command to do this or something like this?

الصورة الرمزية
إهمال
الكاتب

Found reason. Someone has commented out logging in the file. Sad, but simple. Sorry to bother you, guys

أفضل إجابة

Please check the log file .

To see the odoo-server log check the odoo-server.conf file where the log file will be written .

Most commonly  the path will be /var/log/odoo-server.log

Command to view the odoo-server log is following,

tail -f  /var/log/odoo-server.log

tail -f -n 1000 /var/log/odoo-server.log  [to view previous log]


الصورة الرمزية
إهمال

can I take log file of a particular date??

أفضل إجابة

For ODOO ver 10.

    The log files are in /var/log/odoo/odoo-server.log

To view a live stream of the logs as the odoo-server is executing request, type this command:

    tail -f /var/log/odoo/odoo-server.log


To view the last 100  entries, including current request, type: (this value can be any number)

    tail -f -n 100 /var/log/odoo/odoo-server.log


الصورة الرمزية
إهمال

How about Cloud Hosting, where the log file could be found?

أفضل إجابة

To increase the level of logging add this log_handler in your odoo.conf

log_handler = :DEBUG

Remember that in conf file log_handler handle all "log-..." options from command-line see the doc about it for details :

https://www.odoo.com/documentation/10.0/reference/cmdline.html#configuration-file

You may also add multiple others log_handler directives like these if you need :

log_handler = odoo.sql_db:INFO
log_handler = odoo.addons.web.http:DEBUG
log_handler = odoo.http.rpc.response:DEBUG
log_handler = odoo.http.rpc.request:DEBUG

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 20
11491
0
أغسطس 25
6
0
أغسطس 25
3
0
يوليو 25
2
0
مارس 25
1140