trails icon indicating copy to clipboard operation
trails copied to clipboard

Trails should show warning when duplicate API

Open jaumard opened this issue 7 years ago • 0 comments

Issue Description

Currently if both a trailpack and the application declare a model/controller/service/policy, trails log this:

debug: api.services.PluginService is defined by both lisa-plugins-manager and the application. The PluginService config defined in lisa-plugins-manager will be ignored.

The problem is everything is in debug and this one get lost in it. For configuration it's fine to have this as debug but for something important like API it should be more visible (debug in red for me and warn is yellow).

By settings those logs in warning it will help developers to find why a trailpack is not working anymore.

Environment

  • node version: all
  • trails version: all
  • operating system: all

jaumard avatar Nov 23 '16 21:11 jaumard