@@ -88,10 +88,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
88
88
/** @var string */
89
89
private $ user ;
90
90
91
- /**
92
- * @var \OCP\ILogger
93
- */
94
- private $ logger ;
91
+ private LoggerInterface $ logger ;
95
92
96
93
/** @var IStorage */
97
94
private $ nonMaskedStorage ;
@@ -108,7 +105,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
108
105
109
106
public function __construct ($ arguments ) {
110
107
$ this ->ownerView = $ arguments ['ownerView ' ];
111
- $ this ->logger = \OC ::$ server ->getLogger ( );
108
+ $ this ->logger = \OC ::$ server ->get (LoggerInterface::class );
112
109
113
110
$ this ->superShare = $ arguments ['superShare ' ];
114
111
$ this ->groupedShares = $ arguments ['groupedShares ' ];
@@ -184,7 +181,7 @@ private function init() {
184
181
$ this ->nonMaskedStorage = $ this ->storage ;
185
182
$ this ->cache = new FailedCache ();
186
183
$ this ->rootPath = '' ;
187
- $ this ->logger ->logException ($ e );
184
+ $ this ->logger ->error ($ e-> getMessage (), [ ' exception ' => $ e ] );
188
185
}
189
186
190
187
if (!$ this ->nonMaskedStorage ) {
@@ -559,7 +556,7 @@ public function getWrapperStorage() {
559
556
$ this ->nonMaskedStorage = $ this ->storage ;
560
557
$ this ->cache = new FailedCache ();
561
558
$ this ->rootPath = '' ;
562
- $ this ->logger ->logException ($ e );
559
+ $ this ->logger ->error ($ e-> getMessage (), [ ' exception ' => $ e ] );
563
560
}
564
561
565
562
return $ this ->storage ;
0 commit comments