Unable to log to stdout for pgadmin4 in python3
От | Glen Huang |
---|---|
Тема | Unable to log to stdout for pgadmin4 in python3 |
Дата | |
Msg-id | 50F41488-E59D-4D24-AFA1-B315069E1C90@gmail.com обсуждение исходный текст |
Ответы |
Re: Unable to log to stdout for pgadmin4 in python3
|
Список | pgadmin-support |
Hi, I’m running pgadmin4 in docker, and I have set LOG_FILE = '/dev/stdout’ to log to stdout, but when running pgAdmin4.py, itfails with: Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/pgadmin4/pgAdmin4.py", line 56, in <module> app = create_app() File "/usr/local/lib/python3.6/site-packages/pgadmin4/pgadmin/__init__.py", line 183, in create_app fh = logging.FileHandler(config.LOG_FILE, encoding='utf-8') File "/usr/local/lib/python3.6/logging/__init__.py",line 1030, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/local/lib/python3.6/logging/__init__.py",line 1059, in _open return open(self.baseFilename, self.mode, encoding=self.encoding) OSError: [Errno 29] Invalid seek I think it has something do with this: https://bugs.python.org/issue27805 Is there any way to work around it so I can make pgadmin4 log to stdout? Regards Glen
В списке pgadmin-support по дате отправления: