Capture registration errors #24

已關閉
建立於 2018-11-10 21:35:49 +00:00 由 Ghost · 1 comment

Hi,

How can i capture registration errors (for example: authorizations were not fetched) with the domain and some other important data?

Thanks

Hi, How can i capture registration errors (for example: authorizations were not fetched) with the domain and some other important data? Thanks
擁有者

Greenlock v3 now has a notify callback that fires on all types of events

var pkg = require('./package.json');
var Greenlock = require('greenlock');
var greenlock = Greenlock.create({
    packageAgent: pkg.name + '/' + pkg.version,
    maintainerEmail: pkg.author,
    staging: true,
    manager: require('greenlock-manager-fs').create({
        configFile: '~/.config/greenlock/manager.json'
    }),
    notify: function(event, details) {
        if ('error' === event) {
            // `details` is an error object in this case
            console.error(details);
        }
    }
});
Greenlock v3 now has a `notify` callback that fires on all types of events ``` var pkg = require('./package.json'); var Greenlock = require('greenlock'); var greenlock = Greenlock.create({ packageAgent: pkg.name + '/' + pkg.version, maintainerEmail: pkg.author, staging: true, manager: require('greenlock-manager-fs').create({ configFile: '~/.config/greenlock/manager.json' }), notify: function(event, details) { if ('error' === event) { // `details` is an error object in this case console.error(details); } } }); ```
coolaj86 關閉了這個問題 2019-11-01 21:59:08 +00:00
登入 才能加入這對話。
未選擇標籤
2 參與者
通知
截止日期
未設定截止日期。
先決條件

未設定先決條件。

參考: coolaj86/greenlock.js-ARCHIVED#24
No description provided.