Skip to content

Commit

Permalink
Fix code styles and silence debug messages from test server
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jul 23, 2019
1 parent 6385cf2 commit d2a01df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/hello-world.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

require dirname(__DIR__) . "/vendor/autoload.php";
require \dirname(__DIR__) . "/vendor/autoload.php";

use Amp\ByteStream\ResourceOutputStream;
use Amp\Http\Server\RequestHandler\CallableRequestHandler;
Expand Down
5 changes: 3 additions & 2 deletions test/test-server.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env php
<?php

require dirname(__DIR__) . "/vendor/autoload.php";
require \dirname(__DIR__) . "/vendor/autoload.php";

use Amp\ByteStream\ResourceOutputStream;
use Amp\Http\Server\ClientException;
use Amp\Http\Server\RequestHandler\CallableRequestHandler;
use Amp\Http\Server\Request;
use Amp\Http\Server\RequestHandler\CallableRequestHandler;
use Amp\Http\Server\Response;
use Amp\Http\Server\Server;
use Amp\Http\Status;
Expand All @@ -29,6 +29,7 @@

$logHandler = new StreamHandler(new ResourceOutputStream(STDOUT));
$logHandler->setFormatter(new ConsoleFormatter);
$logHandler->setLevel(Logger::INFO);
$logger = new Logger('server');
$logger->pushHandler($logHandler);

Expand Down

0 comments on commit d2a01df

Please sign in to comment.