badoo / liveprof-ui

An aggregator and web interface for Live Profiler
http://liveprof.org/
MIT License
126 stars 19 forks source link

Place aggregator_processor.lock file in custom folder #8

Closed droncheg closed 4 years ago

droncheg commented 4 years ago

Hello! In file src/Badoo/LiveProfilerUI/ConsoleCommands/ProcessAggregatingJobsCommand.php at line 31: $lock_filename = '/tmp/aggregator_processor.lock'; Would be great to change hardcoded/tmp destination folder by setting it in src/config/aggregator_services.yaml config file, or using system/php variables (like TMP, TMPDIR or TEMP). That's important when i need 2 instances of liveprof/liveprof-ui on same host without docker.

Tnx for this usefull tool!

UPD: same in tests/unit/Badoo/LiveProfilerUI/LoggerTest.php, but i'm not using it =)

shagtv commented 4 years ago

Thanks for the report. Lock name was fixed in 1.2.10. In the logger case it's not a problem because of parameter aggregator.log_file in config/services.yaml