Commit 69a2dbaa authored by priit's avatar priit

Utiliidi töö katkestamine

parent 7c863087
......@@ -29,8 +29,7 @@ var CleanerService = function () {
var folder = config.fs.storagePath;
fs.readdir(folder, function(err, files) {
console.log('readFolder');
logger.debug('readFolder');
if(files != undefined && files.length > 0){
self.checkOnIndex(0, files, folder, function (err) {
if(err){
......
......@@ -66,7 +66,6 @@ function ArchiveExtractor() {
logger.debug('Fullpath: ' + fullpath);
var directory = (isFile ? path.dirname(fullpath) : fullpath);
logger.debug('Countx: ' + count);
mkdirp(directory, function(err) {
......@@ -106,11 +105,6 @@ function ArchiveExtractor() {
});
};
this._extractGzipFile = function(file, session, callback) {
logger.debug('Extracting *.tar.gz file');
......
......@@ -35,49 +35,41 @@ config.integration = {
config.log4js = {
appenders: [
{ type: 'console',
layout: {
type: 'pattern',
pattern: "[%d] %[[%x{port}-%x{pid}][%5.5p]%] %c - %m",
tokens: {
pid: process.pid,
port: function () {
return config.wrapper.port;
{
"type": "logLevelFilter",
"level": "ERROR",
"appender": {
type: 'console',
layout: {
type: 'pattern',
pattern: "[%d] %[[%x{port}-%x{pid}][%5.5p]%] %c - %m",
tokens: {
pid: process.pid,
port: function () {
return config.wrapper.port;
}
}
}
}
},
{ type: 'file',
filename: __dirname + '/../wrapper.log'
}/*,
{ // Error reporting
{
"type": "logLevelFilter",
"level": "ERROR",
"appender": {
"type": "smtp",
"layout": {
type: 'pattern',
pattern: "[%d] [%x{port}-%x{pid}][%5.5p] %c - %m",
tokens: {
pid: process.pid,
port: config.port
}
},
"recipients": "**********",
"sendInterval": 10, //sec
"transport": "SMTP",
"SMTP": {
"host": "smtp.gmail.com",
"secureConnection": false,
"port": 587,
"auth": {
"user": "***********",
"pass": "***********"
},
"debug": true
type: 'file',
filename: __dirname + '/../wrapper.log',
layout: {
type: 'pattern',
pattern: "[%d] %[[%x{port}-%x{pid}][%5.5p]%] %c - %m",
tokens: {
pid: process.pid,
port: function () {
return config.wrapper.port;
}
}
}
}
}*/
}
]
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment