Better logging
Separated log streams for access log (defaults to stdout) and general log (defaults to stderr). Added support for writing logs to a file. Improved formatting and added support for JSON formatted logs.
This commit is contained in:
1 parent
8a33d6934a
commit
0097a75cab
7 files changed
+544
-97
No files matched your search
+2
-3
@@ -164,7 +164,6 @@ transferComplete = (sessionData, rpcReq, callback) ->
|
||||
operation = sessionData.operations[commandKey]
|
||||
|
||||
if not operation?
|
||||
# TODO Show a warning
|
||||
return callback(null, {type : 'TransferCompleteResponse'})
|
||||
|
||||
instance = operation.args.instance
|
||||
@@ -182,7 +181,7 @@ transferComplete = (sessionData, rpcReq, callback) ->
|
||||
timestamp: operation.timestamp
|
||||
}
|
||||
|
||||
return callback(err, {type : 'TransferCompleteResponse'}, fault, operation)
|
||||
return callback(err, {type : 'TransferCompleteResponse'}, operation, fault)
|
||||
)
|
||||
|
||||
loadPath(sessionData, ['Downloads', instance, '*'])
|
||||
@@ -218,7 +217,7 @@ transferComplete = (sessionData, rpcReq, callback) ->
|
||||
{value: [timestamp, [+rpcReq.completeTime, 'xsd:dateTime']]}, toClear)
|
||||
|
||||
clear(sessionData, toClear, (err) ->
|
||||
return callback(err, {type : 'TransferCompleteResponse'})
|
||||
return callback(err, {type : 'TransferCompleteResponse'}, operation)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user