From 392f111cfce29dd940b78c6bfdd08ad333a4ae68 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 12 May 2021 12:39:30 +0200 Subject: [PATCH] Adding version info to benchmark header --- benchmark/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benchmark/index.ts b/benchmark/index.ts index db48d66d..324dd32a 100644 --- a/benchmark/index.ts +++ b/benchmark/index.ts @@ -21,6 +21,9 @@ const printHeader = async (statistic: string) => { ', ' + Utils.zeroPrefix(dt.getDate(), 2) + '.' + Utils.zeroPrefix(dt.getMonth() + 1, 2) + '.' + dt.getFullYear()); + if (Config.Server.Environment && Config.Server.Environment.buildCommitHash) { + printLine('**Version**: v' + Config.Server.Environment.appVersion + ', built at: ' + new Date(Config.Server.Environment.buildTime) + ', git commit:' + Config.Server.Environment.buildCommitHash); + } printLine('**System**: ' + BMConfig.system); printLine('\n**Gallery**: ' + statistic + '\n'); };