Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/fd88f17eaddf705195f58d49455e77c22d0c8df5/NzbDrone.Common/Instrumentation/ApplicationLogLayoutRenderer.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using NLog;
|
|
|
|
|
using NLog.Config;
|
|
|
|
|
using NLog.LayoutRenderers;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Instrumentation
|
|
|
|
|
{
|
|
|
|
|
[ThreadAgnostic]
|
|
|
|
|
[LayoutRenderer("appLog")]
|
|
|
|
|
public class ApplicationLogLayoutRenderer : LayoutRenderer
|
|
|
|
|
{
|
|
|
|
|
private readonly string _appData;
|
|
|
|
|
|
|
|
|
|
public ApplicationLogLayoutRenderer()
|
|
|
|
|
{
|
|
|
|
|
_appData = Path.Combine(new EnvironmentProvider().GetLogFolder(), "nzbdrone.txt");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Append(StringBuilder builder, LogEventInfo logEvent)
|
|
|
|
|
{
|
|
|
|
|
builder.Append(_appData);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|