@@ -22,20 +22,18 @@ def deposit
22
22
@path_to_deposit_contents = Sword ::Util ::unzip_deposit_file request_body
23
23
24
24
# log basic essential info. Keep it terse! Gonna use :warn level, though not a warning.
25
- Rails . logger . warn ( "Received deposit POST. Collection slug: #{ @collection_slug } , " \
26
- "Username: #{ @depositor_user_id } , " \
27
- "Path to contents: #{ @path_to_deposit_contents } "
28
- )
25
+ helpers . log_received_deposit_post ( @collection_slug ,
26
+ @depositor_user_id ,
27
+ @path_to_deposit_contents )
29
28
30
29
@endpoint . handle_deposit ( @path_to_deposit_contents )
31
30
32
31
# log basic essential info. Keep it terse! Gonna use :warn level, though not a warning.
33
- Rails . logger . warn ( "Title: #{ @endpoint . deposit_title . truncate_words ( 10 ) } , " \
34
- "Files: #{ @endpoint . documents_to_deposit } , " \
35
- "Hyacinth item pid: #{ @endpoint . adapter_item_identifier } , " \
36
- "Hyacinth asset pids: #{ @endpoint . asset_pids } , " \
37
- "Path to SWORD contents: #{ @path_to_deposit_contents } "
38
- )
32
+ helpers . log_deposit_result_info ( @endpoint . deposit_title . truncate_words ( 10 ) ,
33
+ @endpoint . documents_to_deposit ,
34
+ @endpoint . adapter_item_identifier ,
35
+ @endpoint . asset_pids ,
36
+ @path_to_deposit_contents )
39
37
40
38
# create Deposit instance and store deposit info in database
41
39
@deposit = helpers . create_deposit ( @depositor_user_id ,
0 commit comments