summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2021-03-17 18:42:18 +0100
committerDavid Lönnhager <david.l@mullvad.net>2021-03-18 15:40:10 +0100
commitb74efe92e9acba051607e1482678f97b28ccf107 (patch)
tree2d21b1959429b71f190f4747de32d972e8b35d6e
parentbf6430666e8d292ccf64d9f550b462c1c27608d7 (diff)
downloadmullvadvpn-b74efe92e9acba051607e1482678f97b28ccf107.tar.xz
mullvadvpn-b74efe92e9acba051607e1482678f97b28ccf107.zip
Add logging for ClearFirewallRules and ClearAccountHistory
-rw-r--r--dist-assets/windows/installer.nsh16
1 files changed, 14 insertions, 2 deletions
diff --git a/dist-assets/windows/installer.nsh b/dist-assets/windows/installer.nsh
index 4cf4985362..935c390384 100644
--- a/dist-assets/windows/installer.nsh
+++ b/dist-assets/windows/installer.nsh
@@ -546,6 +546,8 @@
#
!macro ClearFirewallRules
+ log::Log "ClearFirewallRules()"
+
Push $0
Push $1
@@ -553,7 +555,11 @@
Pop $0
Pop $1
- log::Log "Resetting firewall: $0 $1"
+ ${If} $0 != ${MVSETUP_OK}
+ log::LogWithDetails "ClearFirewallRules() failed" $1
+ ${Else}
+ log::Log "ClearFirewallRules() completed successfully"
+ ${EndIf}
Pop $1
Pop $0
@@ -569,6 +575,8 @@
#
!macro ClearAccountHistory
+ log::Log "ClearAccountHistory()"
+
Push $0
Push $1
@@ -576,7 +584,11 @@
Pop $0
Pop $1
- log::Log "Remove account history: $0 $1"
+ ${If} $0 != ${MVSETUP_OK}
+ log::LogWithDetails "ClearAccountHistory() failed" $1
+ ${Else}
+ log::Log "ClearAccountHistory() completed successfully"
+ ${EndIf}
Pop $1
Pop $0