I would like to set Notice.env to the hostname (I realise that the host is already available in Notice.hostname, but this field is not displayed on Errbit's error list screen, whereas the environment is).
AFAIK, the only reliable way to get the hostname is from the request object, e.g.
@cavneb if you've no objection to this (and are willing to release a new version that includes this change), could you let me know, and I'll send a pull-request with the relevant code changes?
I'll make this change such that it's backwards compatible, i.e. the environment will be resolved by passing the current request into the closure above only if a closure is assigned to grails.plugins.airbrake.env.
I'm not sure I understand the need to make this driven from the webRequest. Why can't you set grails.plugins.airbrake.env in each environment that you deploy to and map it to whatever you want?
I would like to set
Notice.env
to the hostname (I realise that the host is already available inNotice.hostname
, but this field is not displayed on Errbit's error list screen, whereas the environment is).AFAIK, the only reliable way to get the hostname is from the request object, e.g.
However, if I configure
this won't work, because there is no request object when this configuration is read. Instead, I would like to be able to do this
@cavneb if you've no objection to this (and are willing to release a new version that includes this change), could you let me know, and I'll send a pull-request with the relevant code changes?
I'll make this change such that it's backwards compatible, i.e. the environment will be resolved by passing the current request into the closure above only if a closure is assigned to
grails.plugins.airbrake.env
.