wikipendium / wikipendium.no

Compendiums edited as a wiki.
https://www.wikipendium.no
Apache License 2.0
36 stars 5 forks source link

Add error logging to file #460

Closed stianjensen closed 4 years ago

stianjensen commented 4 years ago

Our email sending is broken. Thus error logging to email is not very convenient for debugging.


This change is Reviewable

stianjensen commented 4 years ago

huh, been yellow for ages. I'll take a look

stianjensen commented 4 years ago

It failed:

ValueError: Unable to configure handler 'file': [Errno 2] No such file or directory: '/var/log/wikipendium/error.log'

Makefile:30: recipe for target 'test' failed

make: *** [test] Error 1

The command "make test" exited with 2.
cristeahub commented 4 years ago

Either there's another setting for running on CI, or you simply need to touch the file on travis.

stianjensen commented 4 years ago

Okay so reporting to GitHub is just broken.

I guess this is what happens when you just leave this alone for years.

But now it's green on travis 🎉

stianjensen commented 4 years ago

the status check that was here was stale and didn't work so I removed it, thinking I could add the correct one instead. Haven't found the correct one yet.

But here's the travis run: https://travis-ci.org/github/stianjensen/wikipendium.no/builds/686231728

stianjensen commented 4 years ago

Okay, managed to migrate from travis-ci.org to travis-ci.com, maybe this works better.

cristeahub commented 4 years ago

We do fab deploys in this repo (man we should update this). So one of us has to do that from their computer.