vitch
vitch

Reputation: 3214

Trigger.io logging config error

I have added the following to my config.json as per the Trigger.io documentation:

"modules": {
    "logging": {
        "level": ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
    }
}

When I run forge build I get the following error:

[  ERROR] Forge API call to app/fe491ecee6fb11e19ada12313d1adcbe/template went wrong: Value [u'DEBUG', u'INFO', u'WARNING', u'ERROR', u'CRITICAL'] for field 'level' is not of type string

Is the documentation wrong or am I misreading it?

Upvotes: 1

Views: 96

Answers (1)

Patrick Rudolph
Patrick Rudolph

Reputation: 2241

You have to choose one of the options of the array given in the docs, for example:

"modules": {
    "logging": {
        "level": "DEBUG"
    }
}

Upvotes: 1

Related Questions