1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 12:02:35 +02:00

better branch redirection logging

This commit is contained in:
Keivan Beigi 2014-12-04 15:25:56 -08:00
parent cfa8dcca29
commit 1bef690a6a

View File

@ -45,14 +45,14 @@ public UpdatePackage AvailableUpdate()
{
try
{
_logger.Warn("Branch [{0}] is being redirected to [{1}]]", _configFileProvider.Branch, latestAvailable.Branch);
_logger.Info("Branch [{0}] is being redirected to [{1}]]", _configFileProvider.Branch, latestAvailable.Branch);
var config = _configFileProvider.GetConfigDictionary();
config["Branch"] = latestAvailable.Branch;
_configFileProvider.SaveConfigDictionary(config);
}
catch (Exception e)
{
_logger.ErrorException("Couldn't revert back to master.", e);
_logger.ErrorException("Couldn't save the branch redirect.", e);
}
}