Skip to content

Commit 01cea50

Browse files
authored
update navigation log (#835)
* update log
1 parent 4da25e5 commit 01cea50

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/code/Meta/Catalog/Model/Product/Feed/Method/NavigationFeedApi.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
class NavigationFeedApi
3333
{
34-
private const string FEED_FILE_NAME = 'facebook_navigation%s.json';
35-
private const string VAR_DIR = 'var';
34+
private const FEED_FILE_NAME = 'facebook_navigation%s.json';
35+
private const VAR_DIR = 'var';
3636

3737
/**
3838
* @var int
@@ -131,9 +131,9 @@ public function execute($flowName, int $storeId = null,): mixed
131131

132132
$context = $this->categoryUtilities->getCategoryLoggerContext(
133133
$storeId,
134-
'', /* event_type */
134+
'sync_navigation_menu', /* event_type */
135135
$flowName,
136-
'create_navigation_for_store_start',
136+
'sync_navigation_for_store_start',
137137
[
138138
'external_trace_id' => $traceId,
139139
'root_category_id' => $storeRootCategoryId,
@@ -142,7 +142,7 @@ public function execute($flowName, int $storeId = null,): mixed
142142

143143
$this->fbeHelper->logTelemetryToMeta(
144144
sprintf(
145-
"Create Navigation started: storeId: %d, categoryId: %s, flow: %s",
145+
"Sync Navigation started: storeId: %d, categoryId: %s, flow: %s",
146146
$storeId,
147147
$storeRootCategoryId,
148148
$flowName
@@ -171,9 +171,9 @@ public function execute($flowName, int $storeId = null,): mixed
171171

172172
$context = $this->categoryUtilities->getCategoryLoggerContext(
173173
$storeId,
174-
'', /* event_type */
174+
'sync_navigation_menu', /* event_type */
175175
$flowName,
176-
'create_navigation_for_store_completed',
176+
'sync_navigation_for_store_completed',
177177
[
178178
'external_trace_id' => $traceId,
179179
'root_category_id' => $storeRootCategoryId,
@@ -182,7 +182,7 @@ public function execute($flowName, int $storeId = null,): mixed
182182

183183
$this->fbeHelper->logTelemetryToMeta(
184184
sprintf(
185-
"Create Navigation started: storeId: %d, categoryId: %s, flow: %s",
185+
"Sync Navigation completed: storeId: %d, categoryId: %s, flow: %s",
186186
$storeId,
187187
$storeRootCategoryId,
188188
$flowName
@@ -195,9 +195,9 @@ public function execute($flowName, int $storeId = null,): mixed
195195
$e,
196196
$this->categoryUtilities->getCategoryLoggerContext(
197197
(int)$storeId,
198-
'create_navigation_menu',
198+
'sync_navigation_menu',
199199
$flowName,
200-
'create_navigation_for_store_error',
200+
'sync_navigation_for_store_error',
201201
[
202202
'external_trace_id' => $traceId
203203
]

0 commit comments

Comments
 (0)