
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
graphql-error-logger
Advanced tools
allows for the logging of the exception happening in the flask-graphql framework.
this hooks into the graphql error handler and logs the original error, along with its stacktrace
this allows one to see the data for an error like
{
"errors": [
{
"message": "sdsd",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"users"
]
}
],
"data": {
"users": null
}
}
as
2020-04-06 00:02:43,217 - LIA-logger:30 - ERROR - error in resolvers
Traceback (most recent call last):
File "/Users/brianrotich/.pyenv/versions/3.6.10/envs/test-app/lib/python3.6/site-packages/graphql/execution/executor.py", line 452, in resolve_or_error
return executor.execute(resolve_fn, source, info, **args)
File "/Users/brianrotich/.pyenv/versions/3.6.10/envs/test-app/lib/python3.6/site-packages/graphql/execution/executors/sync.py", line 16, in execute
return fn(*args, **kwargs)
File "/Users/brianrotich/.pyenv/versions/3.6.10/envs/test-app/lib/python3.6/site-packages/graphene/relay/connection.py", line 161, in connection_resolver
resolved = resolver(root, info, **args)
File "/Users/brianrotich/codes/app/test-app/__init__.py", line 187, in resolve_users
raise ValueError('sdsd')
ValueError: sdsd
a. using an existing logger in the app.py
import logging
import graphql_error_logger
def create_app():
# logger initialization and configuration
logger= logging.getLogger(__name__)
graphql_error_logger.init_logger(logger)
b. if no logger is provided, the library creates a logger called graphql-error-logger
automatically
import graphql_error_logger
def create_app():
graphql_error_logger.init_logger()
ERROR
log level to log the exception stacktraceFAQs
Log expection from the GraphQL python server
We found that graphql-error-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.