some improvements

This commit is contained in:
Philipp Holzer
2019-10-21 17:29:53 +02:00
parent 2a41f0b104
commit a25d841b85

View File

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