mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
better branch redirection logging
This commit is contained in:
parent
cfa8dcca29
commit
1bef690a6a
1 changed files with 2 additions and 2 deletions
|
@ -45,14 +45,14 @@ namespace NzbDrone.Core.Update
|
||||||
{
|
{
|
||||||
try
|
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();
|
var config = _configFileProvider.GetConfigDictionary();
|
||||||
config["Branch"] = latestAvailable.Branch;
|
config["Branch"] = latestAvailable.Branch;
|
||||||
_configFileProvider.SaveConfigDictionary(config);
|
_configFileProvider.SaveConfigDictionary(config);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
_logger.ErrorException("Couldn't revert back to master.", e);
|
_logger.ErrorException("Couldn't save the branch redirect.", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue