fleaz / CptHook

Receive webhooks from different applications and post them to IRC channels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

configuration for unknown module raises error

mweinelt opened this issue · comments

If it is an error shouldn't CptHook exit? Or is it more like a warning?

● cpthook.service - CptHook Webhook Gateway
   Loaded: loaded (/etc/systemd/system/cpthook.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-04-09 16:47:02 CEST; 18min ago
 Main PID: 2498 (CptHook)
    Tasks: 6 (limit: 4915)
   CGroup: /system.slice/cpthook.service
           └─2498 /usr/local/go/bin/CptHook

Apr 09 16:47:02 elsa systemd[1]: Started CptHook Webhook Gateway.
Apr 09 16:47:02 elsa CptHook[2498]: time="2019-04-09T16:47:02+02:00" level=info msg="Loglevel not defined in configuration. Defaulting to ERROR"
Apr 09 16:47:02 elsa CptHook[2498]: time="2019-04-09T16:47:02+02:00" level=error msg="found configuration for unknown module: \"status\""

This should indeed be a warning because imho we can safely continue and just ignore this part of the config