From 822686fac97f409535abac92b14a9f7ecc387312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=84=9C?= Date: Tue, 6 Feb 2024 11:30:29 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=8C=EB=93=9C=EB=B3=84=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=84=B8=ED=8C=85=20=EB=B0=A9=EC=8B=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/NLog.config | 8 +++++++- Server/Program.cs | 9 +++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Server/NLog.config b/Server/NLog.config index be95943..6ee39dd 100644 --- a/Server/NLog.config +++ b/Server/NLog.config @@ -12,9 +12,15 @@ archiveEvery="Day" maxArchiveFiles="1000" /> + - + + diff --git a/Server/Program.cs b/Server/Program.cs index 8e4fdbd..50d8f2f 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -4,11 +4,16 @@ using Server.System; var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); - +//·Î±× ·¹º§ ¼³Á¤ +#if DEBUG +NLog.GlobalDiagnosticsContext.Set("logLevel", "Trace"); +#elif LIVE +NLog.GlobalDiagnosticsContext.Set("logLevel", "Info"); +#endif //À¥¼­¹ö ÃʱâÈ­ ProtocolProcessor.Init(); //±ê À¥ÈÅ ÃʱâÈ­ -//GItWebhook.Init(); +GItWebhook.Init(); ////http¿ë µ¥ÀÌÅÍ //app.MapPost("/", ProtocolProcessor.Process);