Skip to content

Commit

Permalink
Updated some logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Jan 30, 2025
1 parent 717ca6e commit 801faa0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ async def storm_webdav_state(state, condition, sub):
async with condition:
if user not in state:
state[user] = "NOT RUNNING"
if state[user] == "NOT RUNNING":
logger.info(
"Currently, there is no storm webdav instance running for user %s",
user,
Expand All @@ -702,7 +703,7 @@ async def storm_webdav_state(state, condition, sub):
state[user] = "STARTING"
condition.notify()
should_start_sw = True
logger.debug("Storm-webdav instance for user %s is starting", user)
logger.info("Storm-webdav instance for user %s is starting", user)
logger.debug(
"The state of the storm-webdav server for user %s is %s",
user,
Expand Down Expand Up @@ -805,7 +806,7 @@ async def storm_webdav_state(state, condition, sub):
}
condition.notify()
logger.info(
"StoRM-WebDAV instance for user %s is now running on port %d",
"Storm-webdav instance for user %s is now running on port %d",
user,
port,
)
Expand All @@ -822,7 +823,9 @@ async def storm_webdav_state(state, condition, sub):
async with app.state.state_lock:
port = app.state.session_state[user].get("port")
logger.info(
"StoRM-WebDAV instance for %s is running on port %d", user, port
"Storm-webdav instance for user %s is already running on port %d",
user,
port,
)
return None, port, user

Expand Down

1 comment on commit 801faa0

@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 20.558779s

Passed Tests

Name ⏱️ Duration Suite
GET USER1 9.784 s Teapot-Tests
GET USER2 9.697 s Teapot-Tests
GET NO TOKEN 0.015 s Teapot-Tests
GET INVALID TOKEN 0.049 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.019 s Teapot-Tests
PUT REQUEST NO TOKEN 0.015 s Teapot-Tests
PUT REQUEST USER1 0.169 s Teapot-Tests
PUT REQUEST USER2 0.105 s Teapot-Tests
GET FILE USER1 0.075 s Teapot-Tests
GET FILE USER2 0.064 s Teapot-Tests
GET FILE NO TOKEN 0.010 s Teapot-Tests
GET FILE INVALID TOKEN 0.009 s Teapot-Tests
DELETE REQUEST USER1 0.039 s Teapot-Tests
DELETE REQUEST USER2 0.044 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.040 s Teapot-Tests
GET USER2 EXTRA_AREA 0.046 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.010 s Teapot-Tests
PUT REQUEST NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
PUT REQUEST USER1 EXTRA_AREA 0.039 s Teapot-Tests
PUT REQUEST USER2 EXTRA_AREA 0.039 s Teapot-Tests
GET FILE USER1 EXTRA_AREA 0.056 s Teapot-Tests
GET FILE USER2 EXTRA_AREA 0.057 s Teapot-Tests
GET FILE NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
GET FILE INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
DELETE REQUEST USER1 EXTRA_AREA 0.054 s Teapot-Tests
DELETE REQUEST USER2 EXTRA_AREA 0.038 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.