python web2py.py -L options.py doesn't seem to comply with errors_to_console = True

17 views
Skip to first unread message

João Matos

unread,
Mar 22, 2019, 9:04:46 AM3/22/19
to web2py-users
Hello,

python web2py.py -L options.py doesn't seem to comply with errors_to_console = True.
Is there any way to activate errors to console inside the options.py?
I tried errors_to_console = 1 but it also doesn't work.

This is my current options.py
from os import remove
from socket import gethostname


WEB2PY_DIR
= r'c:\web2py'


try:
    remove
(WEB2PY_DIR + r'\my_lock')
except FileNotFoundError:
   
pass


ip
= gethostname()
# port = 8000
password
= '<recycle>'
errors_to_console
= True
# pid_filename = 'httpserver.pid'
# log_filename = 'httpserver.log'
# ssl_certificate = ''  # Path to certificate file.
# ssl_private_key = ''  # Path to private key file.
# numthreads = 10
# server_name = gethostname()
# request_queue_size = 5
# timeout = 10
# shutdown_timeout = 5
folder
= WEB2PY_DIR



Thanks,

JM

Leonel Câmara

unread,
Mar 22, 2019, 9:18:46 AM3/22/19
to web2py-users
I think it's print_errors and not errors_to_console if you're using an options.py

João Matos

unread,
Mar 22, 2019, 9:32:07 AM3/22/19
to web2py-users
I changed
errors_to_console = True

to
print_errors = True

but I still don't get the traceback on the console.

It's only working when I do
python web2py.py -e -L options.py

João Matos

unread,
Mar 22, 2019, 9:51:19 AM3/22/19
to web2py-users
I was able to follow the web2py source code up until line 1143 of the gluon\widget.py.
To see if the print_errors = True was being read, I added a print(options) and indeed it is, but web2py doesn't comply :(


sexta-feira, 22 de Março de 2019 às 13:18:46 UTC, Leonel Câmara escreveu:
Reply all
Reply to author
Forward
0 new messages