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);