From fa1f76b5d23765f175ad1cd56fc7fce51802bb0e Mon Sep 17 00:00:00 2001 From: Eric Rosas Date: Tue, 25 Apr 2023 11:22:05 -0700 Subject: [PATCH] Fixed Craft::warning() logs EPO-7944 --- CHANGELOG.md | 6 ++++++ src/DamPlugin.php | 2 +- src/services/Assets.php | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58b457b..b3cfbf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.2] - 04-25-2023 + +### Fixed + +- Changed Craft::warn() to Craft::warning() in Assets service class + ## [0.4.1] - 04-25-2023 ### Added diff --git a/src/DamPlugin.php b/src/DamPlugin.php index ec79886..8ccdd9e 100644 --- a/src/DamPlugin.php +++ b/src/DamPlugin.php @@ -45,7 +45,7 @@ class DamPlugin extends Plugin public static Plugin $plugin; public bool $hasCpSettings = true; - public string $schemaVersion = "2.0.1"; + public string $schemaVersion = "2.0.2"; /** * @param $id diff --git a/src/services/Assets.php b/src/services/Assets.php index 1be13db..489998c 100644 --- a/src/services/Assets.php +++ b/src/services/Assets.php @@ -291,11 +291,11 @@ public function getAuthToken($validateOnly = false) : string { return $authToken; } else { - Craft::warn("An exception occurred in getAuthToken()", "UDAMI"); + Craft::warning("An exception occurred in getAuthToken()", "UDAMI"); return 'An error occurred fetching auth token!'; } } else { - Craft::warn("An exception occurred in getAuthToken()", "UDAMI"); + Craft::warning("An exception occurred in getAuthToken()", "UDAMI"); return 'DamPlugin is not configured to authenticate!'; }