diff --git a/SOURCES/wget-1.19.5-no-log-when-quiet.patch b/SOURCES/wget-1.19.5-no-log-when-quiet.patch
new file mode 100644
index 0000000..e961d4e
--- /dev/null
+++ b/SOURCES/wget-1.19.5-no-log-when-quiet.patch
@@ -0,0 +1,26 @@
+From 7ddcebd61e170fb03d361f82bf8f5550ee62a1ae Mon Sep 17 00:00:00 2001
+From: Tomas Korbar <tkorbar@redhat.com>
+Date: Wed, 29 Aug 2018 12:33:43 +0200
+Subject: [PATCH] Avoid creating empty wget-log when using -O and -q in
+ background
+
+* src/log.c (check_redirect_output): Check for quiet mode
+---
+ src/log.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/log.c b/src/log.c
+index d879dffe..e8cca2f3 100644
+--- a/src/log.c
++++ b/src/log.c
+@@ -974,7 +974,7 @@ check_redirect_output (void)
+     {
+       pid_t foreground_pgrp = tcgetpgrp (STDIN_FILENO);
+ 
+-      if (foreground_pgrp != -1 && foreground_pgrp != getpgrp ())
++      if (foreground_pgrp != -1 && foreground_pgrp != getpgrp () && !opt.quiet)
+         {
+           /* Process backgrounded */
+           redirect_output (true,NULL);
+-- 
+2.17.1
diff --git a/SPECS/wget.spec b/SPECS/wget.spec
index 45c44e0..db0d2fc 100644
--- a/SPECS/wget.spec
+++ b/SPECS/wget.spec
@@ -1,7 +1,7 @@
 Summary: A utility for retrieving files using the HTTP or FTP protocols
 Name: wget
 Version: 1.19.5
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: GPLv3+
 Group: Applications/Internet
 Url: http://www.gnu.org/software/wget/
@@ -22,6 +22,7 @@ Patch9: wget-1.19.5-no_proxy-dot-prefix.patch
 Patch10: wget-1.19.5-no_proxy-tests.patch
 # http://git.savannah.gnu.org/cgit/wget.git/commit/?id=706e71564cadc7192ac21efbf51b661c967f35b5
 Patch11: wget-1.19.5-ca-cert-too-verbose.patch
+Patch12: wget-1.19.5-no-log-when-quiet.patch
 
 Provides: webclient
 Provides: bundled(gnulib) 
@@ -58,6 +59,7 @@ grep "PACKAGE_STRING='wget .* (Red Hat modified)'" configure || exit 1
 %patch9 -p1 -b .no_proxy-dot-prefix
 %patch10 -p1 -b .no_proxy-test
 %patch11 -p1 -b .too_verbose
+%patch12 -p1 -b .no-log-quiet
 
 %build
 %configure \
@@ -104,6 +106,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_infodir}/*
 
 %changelog
+* Tue Dec 13 2022 Michal Ruprich <mruprich@redhat.com> - 1.19.5-11
+- Resolves: #2152731 - Running wget with -O and -q in the background yields a file wget-log
+
 * Tue Mar 31 2020 Tomas Hozza <thozza@redhat.com> - 1.19.5-10
 - Fix wget being too verbose when using --no-verbose and --ca-certificate (#1807267)