Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/sites/node_modules/@aws-sdk/middleware-logger/dist-es/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import { __awaiter, __generator, __rest } from "tslib";
export var loggerMiddleware = function () {
return function (next, context) {
return function (args) { return __awaiter(void 0, void 0, void 0, function () {
var clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog, response, _a, $metadata, outputWithoutMetadata;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
clientName = context.clientName, commandName = context.commandName, inputFilterSensitiveLog = context.inputFilterSensitiveLog, logger = context.logger, outputFilterSensitiveLog = context.outputFilterSensitiveLog;
return [4, next(args)];
case 1:
response = _b.sent();
if (!logger) {
return [2, response];
}
if (typeof logger.info === "function") {
_a = response.output, $metadata = _a.$metadata, outputWithoutMetadata = __rest(_a, ["$metadata"]);
logger.info({
clientName: clientName,
commandName: commandName,
input: inputFilterSensitiveLog(args.input),
output: outputFilterSensitiveLog(outputWithoutMetadata),
metadata: $metadata,
});
}
return [2, response];
}
});
}); };
};
};
export var loggerMiddlewareOptions = {
name: "loggerMiddleware",
tags: ["LOGGER"],
step: "initialize",
override: true,
};
export var getLoggerPlugin = function (options) { return ({
applyToStack: function (clientStack) {
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
},
}); };
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0042 ]-- |