Skip to content

Commit dc9822b

Browse files
Merge pull request #10 from cloudinary/v2.0.1-release
V2.0.1 release
2 parents 0ac1db0 + bfc149f commit dc9822b

File tree

5 files changed

+58
-33
lines changed

5 files changed

+58
-33
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
[2.0.1] / 2024-02-09
4+
====================
5+
6+
### Changed
7+
- Updated outdated dependencies
8+
- Added hint to the README for monitoring migration errors during execution of the script
9+
10+
311
[2.0.0] / 2023-09-27
412
====================
513

cld-bulk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function configureProgram(program) {
5757
program
5858
.name('cld-bulk')
5959
.description('Extensible CLI tool to efficiently translate CSV file records into Cloudinary API operations')
60-
.version('2.0.0');
60+
.version('2.0.1');
6161
}
6262

6363

package-lock.json

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"scripts": {
2222
"test": "jest --verbose"
2323
},
24-
"version": "2.0.0"
24+
"version": "2.0.1"
2525
}

readme/run-migration-obtain-report.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,20 @@ node ./cld-bulk.js migrate \
3232
--output-folder /path/to/output/folder/for/this/migration/round \
3333
--max-concurrent-uploads 10
3434
```
35+
36+
# Monitoring for errors
37+
38+
The migration script keeps updating the `log.json` file in the specified output folder.
39+
40+
Oftentime when errors do occur it is helpful to know what types of errors those are (network "hiccups" or incorrect upload API parameters).
41+
42+
If you would like to monitor for errors in the log file during the script execution you can adjust the following command:
43+
44+
```bash
45+
#
46+
# Make sure to replace <input-field-name> with a column name from the input CSV file
47+
# (for example, the one you use to pass `public_id` for the asset)
48+
#
49+
50+
tail -f log.jsonl | jq -r 'select(.summary.status != "MIGRATED") | [.input.<input-field-name>, .summary.status, "--", .summary.err] | join(" ")'
51+
```

0 commit comments

Comments
 (0)