PixelogicDev / gruveebackend

This is the Backend work for Gruvee
MIT License
24 stars 4 forks source link

Implemented Sawmill #57

Closed LeviHarrison closed 4 years ago

LeviHarrison commented 4 years ago

57 this PR I've implemented Sawmill in almost all of the Functions, excluding tokengen and updatealgolia because those are weird. I've also added a spot in config.yaml for the credentials. I plan to add the Emoji improvements to Sawmill in another PR, just wanted to get this out.

LeviHarrison commented 4 years ago

Sorry about all the cryptic commit names, I accidentally left in some things in that shouldn't be in production.

LeviHarrison commented 4 years ago

Fixed up the capitalization issues, changed the order of the parameters for LogErr, and caught one very pesky typo. Regarding UpdateAlgolia, originally there were two ways to initialize a Sawmill Client, one which I used in most of the functions, and the other which I used in a few functions that didn't have initWithEnv. The problem was that the functions using the other way of initializing a Sawmill Client (including UpdateAlgolia), weren't working, so I assumed that it had to do with the functions. Later I found that way of initializing to be flawed, but I didn't put two and two together, so I still believed that UpdateAlgolia was just an anomaly. I'll get around to adding Sawmill to it at some point, I just don't have my config stuff set up on this laptop right now so I can't test if it will load all the ENVs.