-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add execution_transaction_timeout setting (#272) Signed-off-by: cyc60 <[email protected]> * Update README.md (#275) Signed-off-by: joethechicken <[email protected]> * Add latest on tag (#276) * Add latest on tag * Empty * Fix * Fix lint * Release v1.0.8 (#277) Signed-off-by: cyc60 <[email protected]> * Add permissions to token (#279) * Add setup_logging (#283) * Fix after merge * Fix pip-audit --------- Signed-off-by: cyc60 <[email protected]> Signed-off-by: joethechicken <[email protected]> Co-authored-by: Alexander Sysoev <[email protected]> Co-authored-by: joethechicken <[email protected]> Co-authored-by: antares-sw <[email protected]>
- Loading branch information
1 parent
f4943d1
commit 95ba429
Showing
15 changed files
with
543 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "v3-operator" | ||
version = "v1.0.6" | ||
version = "v1.0.8" | ||
description = "StakeWise operator service for registering vault validators" | ||
authors = ["StakeWise Labs <[email protected]>"] | ||
|
||
|
@@ -20,7 +20,7 @@ eciespy = "==0.4.0" | |
prometheus-client = "==0.17.1" | ||
psycopg2 = "==2.9.9" | ||
pyyaml = "==6.0.1" | ||
aiohttp = "==3.9.1" | ||
aiohttp = "==3.9.2" | ||
python-json-logger = "==2.0.7" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import logging | ||
import warnings | ||
|
||
from src.common.utils import JsonFormatter | ||
from src.config.settings import LOG_DATE_FORMAT, LOG_JSON, settings | ||
|
||
|
||
def setup_logging(): | ||
if settings.log_format == LOG_JSON: | ||
formatter = JsonFormatter('%(timestamp)s %(level)s %(name)s %(message)s') | ||
logHandler = logging.StreamHandler() | ||
logHandler.setFormatter(formatter) | ||
logging.basicConfig( | ||
level=settings.log_level, | ||
handlers=[logHandler], | ||
) | ||
else: | ||
logging.basicConfig( | ||
format='%(asctime)s %(levelname)-8s %(message)s', | ||
datefmt=LOG_DATE_FORMAT, | ||
level=settings.log_level, | ||
) | ||
if not settings.verbose: | ||
logging.getLogger('sw_utils.execution').setLevel(logging.ERROR) | ||
logging.getLogger('sw_utils.consensus').setLevel(logging.ERROR) | ||
logging.getLogger('sw_utils.ipfs').setLevel(logging.ERROR) | ||
logging.getLogger('sw_utils.decorators').setLevel(logging.ERROR) | ||
|
||
# Logging config does not affect messages issued by `warnings` module | ||
warnings.simplefilter('ignore') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters