arekinath / pivy

Tools for using PIV tokens (like Yubikeys) as an SSH agent, for encrypting data at rest, and more
193 stars 26 forks source link

Bunyan #10

Closed jasonbking closed 5 years ago

jasonbking commented 5 years ago

Prefix the enum bunyan_log_level values so they don't clash with things like CPPFLAGS += -DDEBUG.

arekinath commented 5 years ago

Can these be BNY_TRACE, BNY_DEBUG etc instead?

jasonbking commented 5 years ago

Yeah that's fine -- I was just making them a bit closer to the illumos-joyent Bunyan definitions which are of the form BUNYAN_L_xxx, but it's not that critical. The key bit is avoiding using DEBUG as a log level since a bug build causes problems w/ sys/debug.h.

jasonbking commented 5 years ago

Should be updated now to use BNY_xxx instead of BNY_L_xxx