4242use OCP \Files \InvalidPathException ;
4343use OCP \Files \NotFoundException ;
4444use OCP \Files \NotPermittedException ;
45- use OCP \ ILogger ;
45+ use Psr \ Log \ LoggerInterface ;
4646
4747class PicoService
4848{
@@ -67,7 +67,7 @@ class PicoService
6767 /** @var string */
6868 public const CONTENT_EXT = '.md ' ;
6969
70- /** @var ILogger */
70+ /** @var LoggerInterface */
7171 private $ logger ;
7272
7373 /** @var AssetsService */
@@ -88,15 +88,15 @@ class PicoService
8888 /**
8989 * PicoService constructor.
9090 *
91- * @param ILogger $logger
92- * @param AssetsService $assetsService
93- * @param ThemesService $themesService
94- * @param PluginsService $pluginsService
95- * @param FileService $fileService
96- * @param MiscService $miscService
91+ * @param LoggerInterface $logger
92+ * @param AssetsService $assetsService
93+ * @param ThemesService $themesService
94+ * @param PluginsService $pluginsService
95+ * @param FileService $fileService
96+ * @param MiscService $miscService
9797 */
9898 public function __construct (
99- ILogger $ logger ,
99+ LoggerInterface $ logger ,
100100 AssetsService $ assetsService ,
101101 ThemesService $ themesService ,
102102 PluginsService $ pluginsService ,
@@ -153,7 +153,7 @@ public function getPage(WebsiteRequest $websiteRequest): PicoPage
153153 throw $ e ;
154154 } catch (\Exception $ e ) {
155155 $ exception = new PicoRuntimeException ($ e );
156- $ this ->logger ->logException ($ exception , [ 'app ' => Application::APP_NAME ]);
156+ $ this ->logger ->error ($ exception , [ 'app ' => Application::APP_NAME ]);
157157 throw $ exception ;
158158 }
159159
0 commit comments