some improvements

This commit is contained in:
Philipp Holzer 2019-10-21 17:29:53 +02:00
parent 2a41f0b104
commit a25d841b85
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class Receive extends BaseModule
break;
default:
self::$logger->info('Wrong call.');
throw new HTTPException\InternalServerErrorException('wrong call.');
throw new HTTPException\BadRequestException('wrong call.');
break;
}
}
@ -134,7 +134,7 @@ class Receive extends BaseModule
}
}
self::$logger->info('Diaspora: Post encoded.');
self::$logger->info('Diaspora: Post decoded.');
self::$logger->debug('Diaspora: Decoded message.', ['msg' => print_r($msg, true)]);
if (!is_array($msg)) {