diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index ff29b612ce4091dbd08810f3d3c67ee2d0c065e7..70574170eef6a3c7b21b7a36ef173ccc26d00c37 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -2,6 +2,9 @@ $Id$
 
 2022-02-22  Christian Franke  <franke@computer.org>
 
+	smartd.cpp: Ensure that '--warn-as-user=restricted' failure is
+	visible in syslog.
+
 	smartd.cpp: Add '-q *nodev0*' option variants.
 	These change the exit status to 0 if there are no devices
 	to monitor.
diff --git a/smartmontools/smartd.cpp b/smartmontools/smartd.cpp
index 5655b5bc368fecad2f9f3afe4085dc675b8a3b54..96f3445be9f49611e20e8dfc55102694808cf53c 100644
--- a/smartmontools/smartd.cpp
+++ b/smartmontools/smartd.cpp
@@ -2,7 +2,7 @@
  * Home page of code is: https://www.smartmontools.org
  *
  * Copyright (C) 2002-11 Bruce Allen
- * Copyright (C) 2008-21 Christian Franke
+ * Copyright (C) 2008-22 Christian Franke
  * Copyright (C) 2000    Michael Cornwell <cornwell@acm.org>
  * Copyright (C) 2008    Oliver Bock <brevilo@users.sourceforge.net>
  *
@@ -5312,7 +5312,7 @@ static int parse_options(int argc, char **argv)
 
 #ifdef _WIN32
   if (warn_as_restr_user && !popen_as_restr_check()) {
-    debugmode = 1;
+    // debugmode=1 // would suppress messages to eventlog or log file
     PrintHead();
     PrintOut(LOG_CRIT, "Option '--warn-as-user=restricted' is not effective if the current user\n");
     PrintOut(LOG_CRIT, "is the local 'SYSTEM' or 'Administrator' account\n\n");