Wednesday, September 10, 2014
2 changes · master
Resolved issues and error corrections
This fixes problems when saving and reloading website theme settings, especially when theme options use internal references or have empty identifiers. Business users should see more reliable theme customization behavior with options reflecting their selected state correctly.
Odoo now correctly writes log messages to the configured log file on Windows instead of sending them only to the console. This helps administrators keep reliable server records and troubleshoot issues as expected.
Original PR description
**In Windows, Odoo fails to write log messages to a configured logfile** Impacted versions: - 7.0 and above Steps to reproduce: 1. Install Odoo in Windows 2. set `logfile = c:\odoo.log` in openerp-server.conf file 3. Run Odoo in Windows, all log messages are still written to console. Expected behavior: 1. Log messages should be written to the configure log file. The reason and the fix: The reason is that a code error in openrp/netsvc.py. The 'FileHandler`class is defined in`logging`module, not in`logging.handlers` module. The fix is to change the line from > handler = logging.handlers.FileHandler(logf) to > handler = logging.FileHandler(logf)