3 Commits

Author SHA1 Message Date
ZhijunWei
8171c03846 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I8c82e52e03b2489aca0b70de761da5ac328c7b9c
2019-02-17 11:16:48 +08:00
Ivan Kolodyazhny
d23e0a65b2 Use file modification events instead of signal handler
In case if application is under Apache+mod_wsgi it is not recommended to
use signals [1]. We need to have configuration option for handling
'touch file' event instead of signal.

Alternative solutions:
1) watchdog: can monitor only directories, has issues with eventlet [2].
2) inotify: works only with linux-based systems.

[1]
https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIRestrictSignal

[2] https://github.com/gorakhargosh/watchdog/issues/332

Change-Id: I6ef02457f21da8e6fbd50e57bfa503b3c31ddd76
Implements: blueprint guru-meditation-report-file-touch
2016-06-13 18:25:14 +03:00
Davanum Srinivas
c8980d92f4 Add a configuration for the directory to generate gmr
If projects choose to have their own config parameter, they
can use setup_autorun's log_dir parameter. if they want
to let oslo.report's manage the configuration, they will
have to call set_defaults and then use setup_autorun's
conf parameter.

Change-Id: I9ed0191628f2d552acd8130687b636671bc07a3e
2015-08-25 22:22:56 -04:00