A CLI tool for downloading from pixiv.net
Revisão | b07c708197c821fceac707aa1ae951f8c45156e6 (tree) |
---|---|
Hora | 2023-11-28 15:21:31 |
Autor | mio <stigma@disr...> |
Commiter | mio |
Log compilation information to LogFile
@@ -1112,6 +1112,24 @@ logLibGMVersion() | ||
1112 | 1112 | infof("GraphicsMagick Depth S: %s", MagickQuantumDepth); |
1113 | 1113 | } |
1114 | 1114 | |
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 | + | |
1115 | 1133 | /* |
1116 | 1134 | * -------------------------------------------------------------------------- |
1117 | 1135 | * Main |
@@ -1188,6 +1206,7 @@ version (GMagick_Dynamic) { | ||
1188 | 1206 | } |
1189 | 1207 | } |
1190 | 1208 | |
1209 | + logCompilationInfo(); | |
1191 | 1210 | logLibGMVersion(); |
1192 | 1211 | |
1193 | 1212 | Config config = loadConfig(); |