Fix on recently merged asset builder catch patch
authoreileen <emcnaughton@wikimedia.org>
Wed, 17 Feb 2021 04:17:09 +0000 (17:17 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 17 Feb 2021 04:17:09 +0000 (17:17 +1300)
This log line got added in review & I think not tested. Only in master

https://github.com/civicrm/civicrm-core/pull/18830

Civi/Core/AssetBuilder.php

index 14103775a9e754ab9ddf0ad68499cd455225f90c..aa40a097f47a3a57b7ecf65b8060589cb6e76b5d 100644 (file)
@@ -195,7 +195,7 @@ class AssetBuilder {
       }
       catch (UnknownAssetException $e) {
         // unexpected error, log and continue
-        Civi::log()->error('Unexpected error while rendering a file in the AssetBuilder: ' . $e->getMessage(), ['exception' => $e]);
+        \Civi::log()->error('Unexpected error while rendering a file in the AssetBuilder: ' . $e->getMessage(), ['exception' => $e]);
       }
     }
     return $fileName;