On 15 Dec 07:22, Axel Braun wrote:
> Hi,
> 
> I'm currently playing around with tryton 3.4, and noticed the following 
> problem:
> 
> /usr/bin/trytond --config /etc/tryton/trytond.conf 
> --pidfile=/var/lib/trytond/trytond.pid 
> --logconf=/etc/tryton/trytond_log.conf
> Traceback (most recent call last):
>   File "/usr/bin/trytond", line 80, in <module>
>     trytond.server.TrytonServer(options).run()
>   File "/usr/lib/python2.7/site-packages/trytond/server.py", line 30, in 
> __init__
>     logging.config.fileConfig(options.logconf)
>   File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
>     handlers = _install_handlers(cp, formatters)
>   File "/usr/lib/python2.7/logging/config.py", line 163, in 
> _install_handlers
>     h = klass(*args)
>   File "/usr/lib/python2.7/logging/handlers.py", line 171, in __init__
>     BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
>   File "/usr/lib/python2.7/logging/handlers.py", line 64, in __init__
>     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
>   File "/usr/lib/python2.7/logging/__init__.py", line 911, in __init__
>     StreamHandler.__init__(self, self._open())
>   File "/usr/lib/python2.7/logging/__init__.py", line 936, in _open
>     stream = open(self.baseFilename, self.mode)
> IOError: [Errno 2] No such file or directory: '/var/log/tryton/trytond.log'
> 
> IMHO Tryton should catch this error and create the file, shouldn't it?

No, it is a bad configuration so it should fail.


-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to