Skip to content

Commit 6aab601

Browse files
author
Ludwig Richter
committed
Merge branch 'master' of github.com:server-state/simple-server
2 parents 9f7a38b + c28da0f commit 6aab601

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ const app = express();
1313
app.use(cors());
1414

1515
// create a new instance of the base server
16-
const myServer = new baseServer();
16+
const myServer = new baseServer({
17+
logToConsole: true, // Log error messages to console, ...
18+
logToFile: false // ... but not to a file
19+
});
1720

1821
// add modules to the created server base
1922
myServer.addModule('raw', raw, ['who', 'pwd', 'uname -a']);

0 commit comments

Comments
 (0)