mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 05:03:57 +00:00
support for DEBUG_PRINT_ENV_VARIABLES
This commit is contained in:
@@ -20,6 +20,13 @@ if (processArgs.processDisplayName) {
|
|||||||
setLoggerName(processArgs.processDisplayName);
|
setLoggerName(processArgs.processDisplayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.env.DEBUG_PRINT_ENV_VARIABLES) {
|
||||||
|
logger.info('Debug print environment variables:');
|
||||||
|
for (const key of Object.keys(process.env)) {
|
||||||
|
logger.info(` ${key}: ${JSON.stringify(process.env[key])}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// function loadLogsContent(maxLines) {
|
// function loadLogsContent(maxLines) {
|
||||||
// const text = fs.readFileSync(getLogsFilePath(), { encoding: 'utf8' });
|
// const text = fs.readFileSync(getLogsFilePath(), { encoding: 'utf8' });
|
||||||
// if (maxLines) {
|
// if (maxLines) {
|
||||||
|
|||||||
Reference in New Issue
Block a user