I am trying to update from AngularJS 1.5 to AngularJS 1.7 and it seems something in the order of execution has changed. The $log is being used before the module.run(), so the getInstance() is not present, causing the application to crash. I was wondering if anyone has come across this and may have a solution. I will keep poking around to see if I can figure it out in the meantime.