Update logging message
This commit is contained in:
parent
a8bc4f999e
commit
7c27b7bf12
|
@ -103,7 +103,7 @@ class RedditDownloader(RedditConnector):
|
|||
logger.debug(f'Written file to {destination}')
|
||||
except OSError as e:
|
||||
logger.exception(e)
|
||||
logger.error(f'Failed to write file to {destination} in submission {submission.id}: {e}')
|
||||
logger.error(f'Failed to write file in submission {submission.id} to {destination}: {e}')
|
||||
return
|
||||
creation_time = time.mktime(datetime.fromtimestamp(submission.created_utc).timetuple())
|
||||
os.utime(destination, (creation_time, creation_time))
|
||||
|
|
|
@ -11,13 +11,13 @@ if [ -n "$2" ]; then
|
|||
output="$2"
|
||||
echo "Outputting IDs to $output"
|
||||
else
|
||||
output="failed.txt"
|
||||
output="./failed.txt"
|
||||
fi
|
||||
|
||||
{
|
||||
grep 'Could not download submission' "$file" | awk '{ print $12 }' | rev | cut -c 2- | rev ;
|
||||
grep 'Failed to download resource' "$file" | awk '{ print $15 }' ;
|
||||
grep 'failed to download submission' "$file" | awk '{ print $14 }' | rev | cut -c 2- | rev ;
|
||||
grep 'Failed to write file' "$file" | awk '{ print $16 }' | rev | cut -c 2- | rev ;
|
||||
grep 'Failed to write file' "$file" | awk '{ print $13 }' | rev | cut -c 2- | rev ;
|
||||
grep 'skipped due to disabled module' "$file" | awk '{ print $9 }' ;
|
||||
} >>"$output"
|
||||
|
|
Loading…
Reference in a new issue