mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Fix formatting of log message in network_service.cpp
This commit is contained in:
@@ -350,10 +350,11 @@ bool NetworkService::deactivateVpnConnection(const VpnConnectionInfo& vpn) {
|
||||
const std::string vpn_name = vpn.name;
|
||||
m_nm->callMethodAsync("DeactivateConnection")
|
||||
.onInterface(k_nmInterface)
|
||||
.withArguments(activePath)
|
||||
.withArguments(sdbus::ObjectPath{activePath_str})
|
||||
.uponReplyInvoke([activePath_str, vpn_name](std::optional<sdbus::Error> err) {
|
||||
if (err.has_value()) {
|
||||
kLog.warn("DeactivateConnection(vpn) failed name={} active={}: {}", vpn_name, activePath_str, err->what());
|
||||
kLog.warn("DeactivateConnection(vpn) failed name={} active={}: {}", vpn_name, activePath_str,
|
||||
err->what());
|
||||
} else {
|
||||
kLog.info("deactivated vpn name={} active={}", vpn_name, activePath_str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user