Skip to content

Commit

Permalink
dbug log
Browse files Browse the repository at this point in the history
  • Loading branch information
subhoghoshX committed Dec 13, 2023
1 parent 5ad2def commit cf54eac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/networkmanager/openvpn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export function OpenVPNDialog({ settings, connection, dev }) {
cockpit.file(vpnSettings.cert, { superuser: 'try' }).read(),
cockpit.file(vpnSettings.key, { superuser: 'try' }).read(),
]);
console.log("promised resolved ?", JSON.stringify({ ca, cert, key }, null, 4));
setCaVal(ca);
setCertVal(cert);
setKeyVal(key);
Expand All @@ -107,6 +108,7 @@ export function OpenVPNDialog({ settings, connection, dev }) {
const userKeyPath = `${user.home}/.cert/${keyFileName}`;

try {
console.log("before submit ?", JSON.stringify({ caVal, certVal, keyVal }, null, 4));
// check if remote or certificates are empty
if (!vpnSettings.remote.trim())
throw new Error(_("Remote cannot be empty."));
Expand Down

0 comments on commit cf54eac

Please sign in to comment.