From 946580373028db7386c0f472ddc126090e27129f Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期五, 04 八月 2023 10:55:05 +0800
Subject: [PATCH] update 优化 屏蔽 powerjob 无用的心跳日志

---
 ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
index 6946a0e..5b6516c 100644
--- a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
@@ -1,11 +1,15 @@
 # Http server port
 server.port=7700
 
-spring.profiles.active=daily
+spring.profiles.active=@profiles.active@
 spring.main.banner-mode=log
 spring.jpa.open-in-view=false
 spring.data.mongodb.repositories.type=none
 logging.level.org.mongodb=warn
+logging.level.tech.powerjob.server=warn
+logging.level.MONITOR_LOGGER_DB_OPERATION=warn
+logging.level.MONITOR_LOGGER_WORKER_HEART_BEAT=warn
+logging.config: classpath:logback-plus.xml
 
 # Configuration for uploading files.
 spring.servlet.multipart.enabled=true
@@ -20,3 +24,10 @@
 oms.http.port=10010
 # Prefix for all tables. Default empty string. Config if you have needs, i.e. pj_
 oms.table-prefix=pj_
+
+# Actuator 鐩戞帶绔偣鐨勯厤缃」
+spring.application.name: ruoyi-powerjob-server
+management.endpoints.web.exposure.include=*
+management.endpoint.health.show-details=ALWAYS
+management.endpoint.logfile.external-file=./logs/ruoyi-powerjob-server.log
+management.health.mongo.enabled=${oms.mongodb.enable}

--
Gitblit v1.9.3