alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.44k stars 8.03k forks source link

Fix sentinel-dashboard.log wrong path problems #3435

Open furaul opened 4 months ago

furaul commented 4 months ago

Describe what this PR does / why we need it

Fix sentinel-dashboard.log wrong path problems while user defined {csp.sentinel.log.dir}.

Does this pull request fix one issue?

https://github.com/alibaba/Sentinel/issues/3434

Describe how you did it

correct logging.file.name setting in sentinel-dashboard/src/main/resources/application.properties.

Describe how to verify it

  1. add -Dcsp.sentinel.log.dir=/Users/XXXX/logs1 in VM options.
  2. While the DashboardApplication startup, the ${user.home}/logs/csp will not be created.

Special notes for reviews