Skip to content

Commit 547cdc2

Browse files
authored
[5.4] Autoupdates - Improve download logging (#45900)
* Log message clarified as an attempt and downloaded log message added
1 parent e00677d commit 547cdc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

administrator/components/com_joomlaupdate/src/Model/UpdateModel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,8 @@ public function prepareAutoUpdate(string $targetVersion): array
544544
throw new \Exception('Could not write update file', 410);
545545
}
546546

547+
Log::add(Text::sprintf('COM_JOOMLAUPDATE_UPDATE_LOG_FILE', $fileInformation['basename']), Log::INFO, 'Update');
548+
547549
$app = Factory::getApplication();
548550

549551
return [

administrator/language/en-GB/com_joomlaupdate.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ COM_JOOMLAUPDATE_UPDATE_LOG_INSTALL="Starting installation of new version."
108108
COM_JOOMLAUPDATE_UPDATE_LOG_START="Update started by user %2$s (%1$s). Old version is %3$s."
109109
COM_JOOMLAUPDATE_UPDATE_LOG_UNINSTALL_EXTENSIONS="Uninstalling extensions"
110110
COM_JOOMLAUPDATE_UPDATE_LOG_UPLOAD="Uploading update file"
111-
COM_JOOMLAUPDATE_UPDATE_LOG_URL="Downloading update file from %s."
111+
COM_JOOMLAUPDATE_UPDATE_LOG_URL="Attempting to download update file from %s."
112112
COM_JOOMLAUPDATE_UPDATE_SUCCESS_MAIL_BODY="This email IS NOT sent by the Joomla! project. It is sent automatically by your own site,\n{SITENAME} - {URL} \n\n================================================================================\nUPDATE INFORMATION\n================================================================================\nYour site has been successfully automatically updated from {OLDVERSION} to {NEWVERSION}.\nPlease check your site for any unexpected behavior or malfunctions.\nThis email is sent to you by your site.\nThe Joomla! project will never contact you directly.\n================================================================================\nWHY AM I RECEIVING THIS EMAIL?\n================================================================================\nThis email has been automatically sent by Joomla!, the software which powers your site.\nYou have enabled automatic updates in your site and the installation of such an update triggers this message.\nIf you do not understand what Joomla! is and what you need to do please do not contact the Joomla! project.\nThey are NOT sending you this email and they cannot help you. Instead, please contact the person who built or manages your site.\n================================================================================\nWHO SENT ME THIS EMAIL?\n================================================================================\nThis email is sent to you by your own site, {SITENAME}"
113113
COM_JOOMLAUPDATE_UPDATE_SUCCESS_MAIL_SUBJECT="Joomla! updated successfully at {SITENAME} – {URL}"
114114
COM_JOOMLAUPDATE_UPDATING_COMPLETE="The update is finalising."

0 commit comments

Comments
 (0)