anfema / python-dblogger Goto Github PK
View Code? Open in Web Editor NEWDB log handler to write log records to PostgreSQL databases
DB log handler to write log records to PostgreSQL databases
This is the output from anfema/lokato-cache-worker@5bb1bf5d9ad350f3c6d9080b65de4a966ba4ba34 (integration)
--- Logging error ---
Traceback (most recent call last):
File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_handler.py", line 203, in async_emit
hostname_id=host.pk
File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_models/model.py", line 65, in create
data = await db.fetchrow(sql, *values)
File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/asyncpg/connection.py", line 454, in fetchrow
self._check_open()
File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/asyncpg/connection.py", line 1147, in _check_open
raise exceptions.InterfaceError('connection is closed')
asyncpg.exceptions._base.InterfaceError: connection is closed
Call stack:
File "worker.py", line 65, in <module>
run_server(config)
File "/app/cache-worker/server/__init__.py", line 166, in run_server
loop.run_until_complete(task)
File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_handler.py", line 139, in log_emitter
await self.async_emit(record)
File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_handler.py", line 221, in async_emit
self.handleError(record)
Config:
{
"db": {
"default": {
"dbname": "lokato",
"host": "postgres",
"password": "cache_worker",
"pool": {
"max": 20,
"min": 5
},
"port": 5432,
"user": "cache_worker"
},
"geocoder": {
"dbname": "geocoder",
"host": "postgres",
"password": "geocoder",
"pool": {
"max": 20,
"min": 5
},
"port": 5432,
"user": "geocoder"
},
"privileged": {
"dbname": "lokato",
"host": "postgres",
"password": "privileged",
"pool": {
"max": 10,
"min": 2
},
"port": 5432,
"user": "privileged"
}
},
"environment": "integration",
"logger": {
"db": {
"dbname": "journal",
"host": "postgres",
"password": "journal",
"port": 5432,
"user": "journal"
},
"level": "DEBUG",
"name": "cache-worker"
},
// ...
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.