Skip to content

Commit 1d7cbbe

Browse files
authored
refactor(firestore-translate-text): clarify log message (#224)
* clarifies log message * prettier * prettier
1 parent a0cf7cc commit 1d7cbbe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

firestore-translate-text/functions/lib/logs/messages.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ exports.messages = {
1111
documentUpdatedUnchangedInput: () => "Document was updated, input string has not changed, no processing is required",
1212
error: (err) => ["Failed execution of extension", err],
1313
fieldNamesNotDifferent: () => "The `Input` and `Output` field names must be different for this extension to function correctly",
14-
init: (config = {}) => ["Initializing extension with configuration", config],
14+
init: (config = {}) => [
15+
"Initializing extension with the parameter values",
16+
config
17+
],
1518
inputFieldNameIsOutputPath: () => "The `Input` field name must not be the same as an `Output` path for this extension to function correctly",
1619
start: (config = {}) => [
1720
"Started execution of extension with configuration",

firestore-translate-text/functions/src/logs/messages.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ export const messages = {
1515
error: (err: Error) => ["Failed execution of extension", err],
1616
fieldNamesNotDifferent: () =>
1717
"The `Input` and `Output` field names must be different for this extension to function correctly",
18-
init: (config = {}) => ["Initializing extension with configuration", config],
18+
init: (config = {}) => [
19+
"Initializing extension with the parameter values",
20+
config,
21+
],
1922
inputFieldNameIsOutputPath: () =>
2023
"The `Input` field name must not be the same as an `Output` path for this extension to function correctly",
2124
start: (config = {}) => [

0 commit comments

Comments
 (0)