File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55use OCA \NextMagentaCloudProvisioning \Db \UserQueries ;
66use OCP \AppFramework \Utility \ITimeFactory ;
77use OCP \BackgroundJob \TimedJob ;
8- use OCP \ILogger ;
98use OCP \IUserManager ;
109use Psr \Log \LoggerInterface ;
1110
@@ -92,7 +91,7 @@ public function run($arguments) {
9291 } catch (\Throwable $ e ) {
9392 $ this ->logger ->logException ($ e , [
9493 'message ' => "Deletion failed for $ uid: " . $ e ->getMessage (),
95- 'level ' => ILogger:: ERROR ,
94+ 'level ' => 3 ,
9695 'app ' => 'nmcprovisioning '
9796 ]);
9897 continue ; // jump to the next user in case of errors
Original file line number Diff line number Diff line change 1313use OCA \UserOIDC \Db \UserMapper ;
1414use OCP \Accounts \IAccountManager ;
1515use OCP \IConfig ;
16- use OCP \ILogger ;
1716use OCP \IUserManager ;
17+ use Psr \Log \LoggerInterface ;
1818
1919class UserDeletionDbTest extends StackedCleanupTestCase {
2020 public function setUp (): void {
@@ -31,7 +31,7 @@ public function setUp(): void {
3131 //$this->config->setSystemValue('datadirectory', '/var/www/html/data');
3232 //$this->config->setSystemValue('dbtype', 'sqlite3');
3333
34- $ this ->logger = $ this ->app ->getContainer ()->get (ILogger ::class);
34+ $ this ->logger = $ this ->app ->getContainer ()->get (LoggerInterface ::class);
3535 $ this ->userServiceMock = $ this ->getMockBuilder (NmcUserService::class)
3636 ->setConstructorArgs ([ $ this ->app ->getContainer ()->get (IUserManager::class),
3737 $ this ->app ->getContainer ()->get (IAccountManager::class),
You can’t perform that action at this time.
0 commit comments