revert(logFacesAppender): didn't need to move the requires

This commit is contained in:
Gareth Jones 2016-12-22 08:08:35 +11:00
parent 7aad4ccff0
commit 74ce349fad

View File

@ -14,13 +14,11 @@
'use strict';
const util = require('util');
const dgram = require('dgram');
const axiosLib = require('axios');
const context = {};
function datagram(config) {
const sock = dgram.createSocket('udp4');
const sock = require('dgram').createSocket('udp4');
const host = config.remoteHost || '127.0.0.1';
const port = config.port || 55201;
@ -36,7 +34,7 @@ function datagram(config) {
}
function servlet(config) {
const axios = axiosLib.create();
const axios = require('axios').create();
axios.defaults.baseURL = config.url;
axios.defaults.timeout = config.timeout || 5000;
axios.defaults.headers = { 'Content-Type': 'application/json' };