Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Marius Sincovici <[email protected]>
  • Loading branch information
mariusSincovici committed Dec 12, 2024
1 parent f5e8025 commit d560b82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/daemon/events_moose.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func newAnalytics(
_ = os.Setenv("MOOSE_LOG_FILE", "Stdout")
logLevel := "error"
if !internal.IsProdEnv(env) {
logLevel = "debug"
logLevel = "error"
}
_ = os.Setenv("MOOSE_LOG", logLevel)
sub := &moose.Subscriber{
Expand Down
4 changes: 2 additions & 2 deletions test/qa/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def _check_connection_to_ip(ip_address):
print(f"~~~_check_connection_to_ip: IN-PING {ip_address} SUCCESS")
except sh.ErrorReturnCode as e:
print(f"~~~_check_connection_to_ip: IN-PING {ip_address} FAILURE: {e}.")
data = "\n".join("_check_connection_to_ip: Default route:",
data = "\n".join(["_check_connection_to_ip: Default route:",
str(os.popen("sudo ip route get 1.1.1.1").read()),
"iptables stats",str(os.popen("sudo iptables -L -v -n").read()))
"iptables stats",str(os.popen("sudo iptables -L -v -n").read())])
logging.log(data=data)
time.sleep(_CHECK_FREQUENCY)

Expand Down
3 changes: 2 additions & 1 deletion test/qa/lib/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ def stop() -> str:

if daemon.is_init_systemd():
sh.sudo.nmcli.networking.off()
print("using nmcli")
else:
sh.sudo.ip.link.set.dev.eth0.down()

logging.log("stopping network")
logging.log("stopping network {default_gateway}")
assert is_not_available()
logging.log(info.collect())
return default_gateway
Expand Down

0 comments on commit d560b82

Please sign in to comment.