diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-14 01:27:10 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-14 01:27:10 -0500 |
| commit | 1b06e05cf69815e523faaf9e237461fe0541c7ce (patch) | |
| tree | 359fe31cb03d01cb51a65f6ebd871a6da58ad988 /MediaBrowser.Common.Implementations/BaseApplicationHost.cs | |
| parent | 4f5c7687042148507d5cedfcec81ab355f478f19 (diff) | |
update translations
Diffstat (limited to 'MediaBrowser.Common.Implementations/BaseApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/BaseApplicationHost.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs index a5b808226..fd6f933c7 100644 --- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs +++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs @@ -266,7 +266,7 @@ namespace MediaBrowser.Common.Implementations if (!isFirstLoad) { - LogEnvironmentInfo(Logger, ApplicationPaths); + LogEnvironmentInfo(Logger, ApplicationPaths, false); } // Put the app config in the log for troubleshooting purposes @@ -285,8 +285,13 @@ namespace MediaBrowser.Common.Implementations } } - public static void LogEnvironmentInfo(ILogger logger, IApplicationPaths appPaths) + public static void LogEnvironmentInfo(ILogger logger, IApplicationPaths appPaths, bool isStartup) { + if (isStartup) + { + logger.Info("Media Browser Server started"); + } + logger.Info("Command line: {0}", string.Join(" ", Environment.GetCommandLineArgs())); logger.Info("Server: {0}", Environment.MachineName); @@ -692,18 +697,11 @@ namespace MediaBrowser.Common.Implementations return parts; } - private Version _version; /// <summary> - /// Gets the current application version + /// Gets the application version. /// </summary> /// <value>The application version.</value> - public Version ApplicationVersion - { - get - { - return _version ?? (_version = GetType().Assembly.GetName().Version); - } - } + public abstract Version ApplicationVersion { get; } /// <summary> /// Handles the ConfigurationUpdated event of the ConfigurationManager control. |
