Skip to content

Commit a3dddcf

Browse files
committed
Set default log level to silent
1 parent 6a6ac7f commit a3dddcf

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ var amadeus = new Amadeus({
168168
});
169169
```
170170

171-
Additionally, to enable more verbose logging, you can set the appropriate level on your own logger, though the easiest way would be to enable debugging via a parameter on initialization, or using the `AMADEUS_LOG_LEVEL` environment variable. The available options are `warn` (default), `debug`, and `silent`.
171+
Additionally, to enable more verbose logging, you can set the appropriate level on your own logger, though the easiest way would be to enable debugging via a parameter on initialization, or using the `AMADEUS_LOG_LEVEL` environment variable. The available options are `silent` (default), `warn`, and `debug`.
172172

173173
```js
174174
var amadeus = new Amadeus({

npm-shrinkwrap.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amadeus",
3-
"version": "1.0.0-beta4",
3+
"version": "1.0.0-beta5",
44
"description": "Node library for the Amadeus travel APIs",
55
"main": "lib/amadeus.js",
66
"scripts": {

spec/amadeus/client.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('Client', () => {
3939
expect(client.customAppId).toBe(null);
4040
expect(client.customAppVersion).toBe(null);
4141
expect(client.http).toBe(https);
42-
expect(client.logLevel).toBe('warn');
42+
expect(client.logLevel).toBe('silent');
4343
});
4444

4545
it('should allow for setting a custom logger', () => {

src/amadeus/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import pkg from '../../package.json';
3030
* the API
3131
* @property {Object} logger the `console`-compatible logger used to debug calls
3232
* @property {string} logLevel the log level for the client, available options
33-
* are `debug`, `warn`, and `silent`
33+
* are `debug`, `warn`, and `silent`. Defaults to 'silent'
3434
* @property {string} host the hostname of the server API calls are made to
3535
* @property {number} port the port the server API calls are made to
3636
* @property {boolean} ssl wether an SSL request is made to the server

src/amadeus/client/errors.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export class ResponseError {
3131
}
3232
}
3333

34-
35-
3634
// Protected
3735

3836
export class NetworkError extends ResponseError {

src/amadeus/client/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Validator {
5353

5454
initializeLogger(client, options) {
5555
client.logger = this.initOptional('logger', options, console);
56-
client.logLevel = this.initOptional('logLevel', options, 'warn');
56+
client.logLevel = this.initOptional('logLevel', options, 'silent');
5757
}
5858

5959
initializeHost(client, options) {

0 commit comments

Comments
 (0)