Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue log message on upload #2571

Merged
merged 1 commit into from Jan 16, 2018
Merged

Issue log message on upload #2571

merged 1 commit into from Jan 16, 2018

Conversation

zachmullen
Copy link
Member

This will allow for better log-based forensics for files uploaded into Girder.

This will allow for better log-based forensics for files
uploaded into Girder.
@@ -243,6 +243,9 @@ def finalizeUpload(self, upload, assetstore=None):
if '_id' in upload:
self.remove(upload)

logger.info('Upload complete. Upload=%s File=%s User=%s' % (
upload['_id'], file['_id'], upload['userId']))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add the size and/or the name of the file? When trying to determine files of interest, these could help.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't include any actual metadata about the file itself in the log, it seems more useful to just retain its ID and we could lookup the full metadata from the database via a script if needed.

Since much of the metadata is mutable, I figured we would be better off just using this as a way to do lookups into the database. Probably any analysis we'll want to perform will involve data munging from disparate sources.

@zachmullen zachmullen merged commit dc56ebc into master Jan 16, 2018
@zachmullen zachmullen deleted the log-on-upload branch January 16, 2018 17:19
@mgrauer mgrauer mentioned this pull request Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants