• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A CLI tool for downloading from pixiv.net


Commit MetaInfo

Revisionb07c708197c821fceac707aa1ae951f8c45156e6 (tree)
Time2023-11-28 15:21:31
Authormio <stigma@disr...>
Commitermio

Log Message

Log compilation information to LogFile

Change Summary

Incremental Difference

--- a/source/app.d
+++ b/source/app.d
@@ -1112,6 +1112,24 @@ logLibGMVersion()
11121112 infof("GraphicsMagick Depth S: %s", MagickQuantumDepth);
11131113 }
11141114
1115+void
1116+logCompilationInfo()
1117+{
1118+ import std.experimental.logger : infof;
1119+
1120+ const bits = (void*).sizeof == 8 ? "64" : "32";
1121+ version (linux)
1122+ const system = "Linux";
1123+ else version (Windows)
1124+ const system = "Windows";
1125+ else
1126+ const system = "Unknown";
1127+
1128+ infof("pixiv_down %s started", PixivDownVersionString);
1129+ infof("Running on %s | %s-bit build | pixivd %s | %s %,?d", system, bits,
1130+ PixivDVersionString, __VENDOR__, '.', __VERSION__);
1131+}
1132+
11151133 /*
11161134 * --------------------------------------------------------------------------
11171135 * Main
@@ -1188,6 +1206,7 @@ version (GMagick_Dynamic) {
11881206 }
11891207 }
11901208
1209+ logCompilationInfo();
11911210 logLibGMVersion();
11921211
11931212 Config config = loadConfig();