You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we have one SPDK log_level in the conf file which is used for both the SPDK protocol with the gateway and the inner SPDK logic. The problem is if we set this to DEBUG we get tons of messages about the protocol which are probably not interested in. We need a way to set the SPDK log level without changing the protocol log level. We tried to do so in the past but reverted the change because of update issues in cephadm. We should at least allow this in a development environment, where we don't have cephadm. We need to see if we cal also add it to the cephadm spec file without breaking the update.
Also, the protocol log level is used for 3 different connections:
the regular gw-SPDK connection
the specific connection used for get_subsysystems
the connection used for pings
We need to see if we really need this in all these connection. We should probably disable the protocol log for the ping connection. Maybe even for the get_subsystems one.
The text was updated successfully, but these errors were encountered:
diff --git a/control/server.py b/control/server.py
index 332cbcd..795f3af 100644
--- a/control/server.py
+++ b/control/server.py
@@ -414,7 +414,9 @@ class GatewayServer:
# Initialization
timeout = self.config.getfloat_with_default("spdk", "timeout", 60.0)
- protocol_log_level = self.config.get_with_default("spdk", "log_level", "WARNING")
+ protocol_log_level = self.config.get_with_default("spdk", "protocol_log_level", "")
+ if not protocol_log_level or not protocol_log_level.strip():
+ protocol_log_level = self.config.get_with_default("spdk", "log_level", "WARNING")
if not protocol_log_level or not protocol_log_level.strip():
protocol_log_level = "WARNING"
else:
This was we first try to read the field protocol_log_level from the conf file. If it's not there we fallback to the old behavior and use the log_level field. This way we maintain backward compatibility.
Right now we have one SPDK log_level in the conf file which is used for both the SPDK protocol with the gateway and the inner SPDK logic. The problem is if we set this to DEBUG we get tons of messages about the protocol which are probably not interested in. We need a way to set the SPDK log level without changing the protocol log level. We tried to do so in the past but reverted the change because of update issues in cephadm. We should at least allow this in a development environment, where we don't have cephadm. We need to see if we cal also add it to the cephadm spec file without breaking the update.
Also, the protocol log level is used for 3 different connections:
We need to see if we really need this in all these connection. We should probably disable the protocol log for the ping connection. Maybe even for the get_subsystems one.
The text was updated successfully, but these errors were encountered: