Skip to content

Commit 48c7e5a

Browse files
committed
Degrade log statement in experiment_server
This is called every 2 second from the everest client polling for states, and implies too much noise for the INFO level. Changing to DEBUG level.
1 parent b01e384 commit 48c7e5a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/ert/dark_storage/endpoints/experiment_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _check_user(credentials: HTTPBasicCredentials) -> None:
140140

141141

142142
def _log(request: Request) -> None:
143-
logging.getLogger(EVERSERVER).info(
143+
logging.getLogger(EVERSERVER).debug(
144144
f"{request.scope['path']} entered from "
145145
f"{request.client.host if request.client else 'unknown host'} "
146146
f"with HTTP {request.method}"

tests/everest/test_logging.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ def test_logging_setup(copy_math_func_test_data_to_tmp):
7070
# Avoid cases where optimization finished before we get a chance to check that
7171
# the everest server has started
7272
if endpoint_logs:
73-
assert (
74-
"everserver INFO: /experiment_server/status entered from" in endpoint_logs
75-
)
73+
assert "everserver INFO: Everserver starting" in endpoint_logs
74+
assert "everserver INFO: ExperimentRunner done" in endpoint_logs
7675

7776

7877
def test_that_cleanup_logging_is_idempotent(monkeypatch):

0 commit comments

Comments
 (0)