Skip to content

Commit

Permalink
Merge pull request #40 from lsst-epo/EPO-7944
Browse files Browse the repository at this point in the history
Fixed Craft::warning() logs
  • Loading branch information
ericdrosas87 authored Apr 25, 2023
2 parents 29b49f9 + fa1f76b commit 5911353
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/DamPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/services/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!';
}

Expand Down

0 comments on commit 5911353

Please sign in to comment.