Skip to content

Commit

Permalink
changed deprecated logger option
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Dec 19, 2024
1 parent de036f8 commit 0ce259b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion robot/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
curl -O https://syncandshare.desy.de/index.php/s/Ncj3Lfk8iEGYGsf/download/teapot-tests.robot
curl -O https://syncandshare.desy.de/index.php/s/Zzr8qMipiL2En5D/download/variables.py
robot --outputdir robot/output/ /tmp/teapot-tests.robot
echo "Something. "
echo "Something else. "
while true; do sleep 1; done'
networks:
- test
Expand Down
5 changes: 2 additions & 3 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@ async def lifespan(app: FastAPI):
flaat.set_trusted_OP_list(config["Teapot"]["trusted_OP"].split(", "))

# logging
LOGLEVEL = config["Teapot"]["log_level"]
logging.basicConfig(
filename=config["Teapot"]["log_location"],
encoding="utf-8",
filemode="a",
format="%(asctime)s: %(levelname)s: %(message)s",
format="%(asctime)s %(levelname)s %(message)s",
datefmt="%Y-%m-%d %H:%M",
level=logging.getLevelName(LOGLEVEL)
level=config["Teapot"]["log_level"],
)
logger = logging.getLogger(__name__)

Expand Down

1 comment on commit 0ce259b

@vrbanecd
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
32 0 0 32 100 18.343342s

Passed Tests

Name ⏱️ Duration Suite
GET USER1 8.745 s Teapot-Tests
GET USER2 8.610 s Teapot-Tests
GET NO TOKEN 0.011 s Teapot-Tests
GET INVALID TOKEN 0.034 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.010 s Teapot-Tests
PUT REQUEST NO TOKEN 0.011 s Teapot-Tests
PUT REQUEST USER1 0.140 s Teapot-Tests
PUT REQUEST USER2 0.092 s Teapot-Tests
GET FILE USER1 0.079 s Teapot-Tests
GET FILE USER2 0.061 s Teapot-Tests
GET FILE NO TOKEN 0.009 s Teapot-Tests
GET FILE INVALID TOKEN 0.009 s Teapot-Tests
DELETE REQUEST USER1 0.035 s Teapot-Tests
DELETE REQUEST USER2 0.041 s Teapot-Tests
DELETE REQUEST INVALID TOKEN 0.010 s Teapot-Tests
DELETE REQUEST NO TOKEN 0.009 s Teapot-Tests
GET USER1 EXTRA_AREA 0.036 s Teapot-Tests
GET USER2 EXTRA_AREA 0.043 s Teapot-Tests
GET NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
GET INVALID TOKEN EXTRA_AREA 0.010 s Teapot-Tests
PUT REQUEST INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST USER1 EXTRA_AREA 0.035 s Teapot-Tests
PUT REQUEST USER2 EXTRA_AREA 0.037 s Teapot-Tests
GET FILE USER1 EXTRA_AREA 0.054 s Teapot-Tests
GET FILE USER2 EXTRA_AREA 0.059 s Teapot-Tests
GET FILE NO TOKEN EXTRA_AREA 0.012 s Teapot-Tests
GET FILE INVALID TOKEN EXTRA_AREA 0.011 s Teapot-Tests
DELETE REQUEST USER1 EXTRA_AREA 0.040 s Teapot-Tests
DELETE REQUEST USER2 EXTRA_AREA 0.053 s Teapot-Tests
DELETE REQUEST INVALID TOKEN EXTRA_AREA 0.010 s Teapot-Tests
DELETE REQUEST NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests

Please sign in to comment.