From 935f2b013e2103f7f4f0cb091878403deb8e563c Mon Sep 17 00:00:00 2001
From: dyszczo <krzysztof.dyszczyk@gmail.com>
Date: Tue, 21 Jul 2020 16:13:17 +0200
Subject: [PATCH] fix(notice): Notice error when cannot create log file

---
 CHANGELOG.md         | 4 ++++
 src/WP/WPCapture.php | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7a7151c..d062e4d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## [1.6.2] - 2020-07-21
+### Fixed
+- Notice error when cannot create log file
+
 ## [1.6.1] - 2020-05-25
 ### Fixed
 - WooCommerceCapture checks if WC exists before proceeding
diff --git a/src/WP/WPCapture.php b/src/WP/WPCapture.php
index f532de2..f0c1789 100644
--- a/src/WP/WPCapture.php
+++ b/src/WP/WPCapture.php
@@ -27,7 +27,7 @@ class WPCapture {
 				),
 				$dir
 			),
-			WPDesk\Notice\Notice::NOTICE_TYPE_ERROR
+			\WPDesk\Notice\Notice::NOTICE_TYPE_ERROR
 		);
 	}
 
@@ -46,7 +46,7 @@ class WPCapture {
 				),
 				$file
 			),
-			WPDesk\Notice\Notice::NOTICE_TYPE_ERROR
+			\WPDesk\Notice\Notice::NOTICE_TYPE_ERROR
 		);
 	}
 
-- 
GitLab