File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818use CleverAge \UiProcessBundle \Admin \Filter \ProcessExecutionDurationFilter ;
1919use CleverAge \UiProcessBundle \Entity \ProcessExecution ;
2020use CleverAge \UiProcessBundle \Repository \ProcessExecutionRepository ;
21+ use EasyCorp \Bundle \EasyAdminBundle \Attribute \AdminRoute ;
2122use EasyCorp \Bundle \EasyAdminBundle \Config \Action ;
2223use EasyCorp \Bundle \EasyAdminBundle \Config \Actions ;
2324use EasyCorp \Bundle \EasyAdminBundle \Config \Crud ;
@@ -108,6 +109,7 @@ public function configureActions(Actions $actions): Actions
108109 );
109110 }
110111
112+ #[AdminRoute('show-logs ' , 'show-logs ' )]
111113 public function showLogs (): RedirectResponse
112114 {
113115 /** @var AdminUrlGenerator $adminUrlGenerator */
@@ -132,6 +134,7 @@ public function showLogs(): RedirectResponse
132134 return $ this ->redirect ($ url );
133135 }
134136
137+ #[AdminRoute('download-logs ' , 'download-logs ' )]
135138 public function downloadLogFile (): Response
136139 {
137140 /** @var ProcessExecution $processExecution */
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function __construct(
5858 $ this ->level = $ record ->level ->value ;
5959 $ this ->message = (string ) (new UnicodeString ($ record ->message ))->truncate (512 );
6060 $ this ->context = $ record ->context ;
61- $ this ->createdAt = \DateTimeImmutable:: createFromMutable ( new \ DateTime ()) ;
61+ $ this ->createdAt = $ record -> datetime ;
6262 }
6363
6464 public function contextIsEmpty (): bool
You can’t perform that action at this time.
0 commit comments