mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 09:18:34 +00:00
deskmetrics doesn't report during dev.
This commit is contained in:
parent
90e5e8eef3
commit
e5fa098d66
3 changed files with 13 additions and 5 deletions
|
@ -70,8 +70,12 @@ namespace NzbDrone.Core
|
|||
|
||||
var deskMetricsClient = new DeskMetricsClient(Kernel.Get<ConfigProvider>().UGuid.ToString(), appId, _enviromentProvider.Version);
|
||||
Kernel.Bind<IDeskMetricsClient>().ToConstant(deskMetricsClient);
|
||||
|
||||
if (EnviromentProvider.IsProduction)
|
||||
{
|
||||
Kernel.Get<AnalyticsProvider>().Checkpoint();
|
||||
}
|
||||
}
|
||||
|
||||
private void InitQuality()
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Ninject;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Core.Model.Notification;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
||||
|
@ -32,8 +33,11 @@ namespace NzbDrone.Core.Jobs
|
|||
}
|
||||
|
||||
public void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
||||
{
|
||||
if(EnviromentProvider.IsProduction)
|
||||
{
|
||||
_analyticsProvider.Checkpoint();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -34,7 +34,7 @@ namespace NzbDrone.Core.Providers
|
|||
try
|
||||
{
|
||||
//Don't report anything unless working from master branch.
|
||||
if (!IsOnMasterBranch() || !EnviromentProvider.IsProduction)
|
||||
if (!IsOnMasterBranch())
|
||||
return;
|
||||
|
||||
if (EnviromentProvider.IsNewInstall)
|
||||
|
|
Loading…
Reference in a new issue