Logging needs to offer more information
mweinelt opened this issue · comments
I've set logging to INFO and DEBUG but neither offer much information on whats happening, like incoming webhooks or irc connects/disconnects and messages going in/out. This makes it hard to find out what state CptHook is currently in, like when it doesn't connect or reconnect to IRC.
Feb 25 00:47:02 elsa CptHook[3749]: time="2020-02-25T00:47:02+01:00" level=info msg="Setting loglevel defined by configuration" fields.level=debug
Feb 25 00:47:02 elsa CptHook[3749]: time="2020-02-25T00:47:02+01:00" level=info msg="Loaded module \"prometheus\""
Feb 25 00:47:02 elsa CptHook[3749]: time="2020-02-25T00:47:02+01:00" level=warning msg="found configuration for unknown module: \"status\""
Feb 25 00:47:02 elsa CptHook[3749]: time="2020-02-25T00:47:02+01:00" level=info msg="Loaded module \"gitlab\""
Feb 25 00:47:02 elsa CptHook[3749]: time="2020-02-25T00:47:02+01:00" level=info msg="Started HTTP Server" listen=":8086"
Feb 25 00:47:02 elsa CptHook[3749]: time="2020-02-25T00:47:02+01:00" level=info msg="ChannelReceiver started"
Feb 25 00:47:14 elsa CptHook[3749]: time="2020-02-25T00:47:14+01:00" level=debug msg="Need to join new channel" channel="#ffda-mon"
Feb 25 00:47:14 elsa CptHook[3749]: time="2020-02-25T00:47:14+01:00" level=debug msg="Need to join new channel" channel=
Also the escaping of quoted values is weird.