Make this log message less confusing.

The method name still needs to be fixed.
This commit is contained in:
Jean-Paul Calderone 2019-03-06 07:58:47 -05:00
parent 70ec8f2963
commit da0bbd6bba

View File

@ -43,11 +43,11 @@ _INSERT_OR_UPDATE = Field.for_types(
validateSetMembership({u"insert", u"update"}),
)
DID_UPLOAD_VERSION = ActionType(
u"magic-folder-db:did-upload-version",
UPDATE_ENTRY = ActionType(
u"magic-folder-db:update-entry",
[RELPATH, VERSION, LAST_UPLOADED_URI, LAST_DOWNLOADED_URI, LAST_DOWNLOADED_TIMESTAMP, PATHINFO],
[_INSERT_OR_UPDATE],
u"An file upload is being recorded in the database.",
u"Record some metadata about a relative path in the magic-folder.",
)
@ -176,7 +176,7 @@ class MagicFolderDB(object):
return set([r[0] for r in rows])
def did_upload_version(self, relpath_u, version, last_uploaded_uri, last_downloaded_uri, last_downloaded_timestamp, pathinfo):
action = DID_UPLOAD_VERSION(
action = UPDATE_ENTRY(
relpath=relpath_u,
version=version,
last_uploaded_uri=last_uploaded_uri,