mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-06 06:53:47 +00:00
Log precise version of lib
This commit is contained in:
parent
ec6fb6c0c0
commit
4418f562cb
2 changed files with 9 additions and 1 deletions
|
|
@ -74,7 +74,8 @@ namespace WTelegram
|
|||
if (_session.MainDC != 0) _session.DCSessions.TryGetValue(_session.MainDC, out _dcSession);
|
||||
_dcSession ??= new() { Id = Helpers.RandomLong() };
|
||||
_dcSession.Client = this;
|
||||
Helpers.Log(1, $"WTelegramClient {Assembly.GetExecutingAssembly().GetName().Version} running under {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
|
||||
var version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
|
||||
Helpers.Log(1, $"WTelegramClient {version[..version.IndexOf('+')]} running under {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
|
||||
}
|
||||
|
||||
private Client(Client cloneOf, Session.DCSession dcSession)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue