mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 21:12:45 +08:00
DEV: Log any errors for the user csv export (#25422)
Currently when exporting a list of users and there is an error we just log that there was an error, but we don't show what the issue is in the logs which makes it really hard to debug in production. This change will output any errors to the logs.
This commit is contained in:
parent
ae5c11f364
commit
e409fabf8d
|
@ -103,7 +103,9 @@ module Jobs
|
|||
if upload.persisted?
|
||||
user_export.update_columns(upload_id: upload.id)
|
||||
else
|
||||
Rails.logger.warn("Failed to upload the file #{zip_filename}")
|
||||
Rails.logger.warn(
|
||||
"Failed to upload the file #{zip_filename}: #{upload.errors.full_messages}",
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user