Skip to content

Commit 95a7a06

Browse files
committed
reverse arrow direction
1 parent ffd64ef commit 95a7a06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const volleyball = require('volleyball')
1313
app.use(volleyball)
1414
```
1515

16-
![Screenshot](https://cloud.githubusercontent.com/assets/7230206/17654589/912d68b2-6272-11e6-9b49-1858fe20c6a6.jpg)
16+
![Screenshot](https://cloud.githubusercontent.com/assets/7230206/17677905/ce1c59f0-6302-11e6-9bdb-b43c4d831152.jpg)
1717

1818
Volleyball is a minimal Connect-style middleware function which logs incoming requests and outgoing responses as separate events. It optionally supports the [`debug`](https://github.com/visionmedia/debug#readme) module.
1919

lib/volleyball.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function logReq (req, shared) {
5151
const bytes = +req.headers['content-length']
5252
const type = req.headers['content-type']
5353

54-
let reqLine = `${shared.id} ${chalk.dim('<——')} `
54+
let reqLine = `${shared.id} ${chalk.dim('——>')} `
5555
reqLine += `${chalk.bold.underline(req.method)} ${req.url} `
5656
if (bytes) reqLine += chalk.blue(filesize(bytes)) + sp
5757
if (type) reqLine += chalk.blue.dim(type)
@@ -72,7 +72,7 @@ function logRes (res, shared) {
7272
else if (status >= 200) statusColor = 'green'
7373
else statusColor = 'reset'
7474

75-
let resLine = `${shared.id} ${chalk.dim('——>')} `
75+
let resLine = `${shared.id} ${chalk.dim('<——')} `
7676
resLine += chalk[statusColor](`${status} ${meaning}`) + sp
7777
if (bytes) resLine += chalk.blue(filesize(bytes)) + sp
7878
if (type) resLine += chalk.blue.dim(type) + sp

0 commit comments

Comments
 (0)