| Commit message (Expand) | Author | Age | Files | Lines |
| * | Remove unnecessary log alias for logrus inport•••Some time ago [we had a discussion](https://gitlab.com/gitlab-org/gitlab-runner/merge_requests/934#note_91891281)
about why we're aliasing some of the imports of `github.com/sirupsen/logrus`
package with a `log` alias.
At that moment we've been doing that in 17 from 68 cases when logrus
was imported in Runners codebase.
The conclusion was this aliasing is unnecessary, because:
- we relay on logrus interface so much that moving to another logging
library will be not so simple as switching the import name;
- we're totally not consistent in the alias usage which makes the code
even more messy.
Three GitLab Runner maintainers agreeded hat there is no reason to use
the aliasing and that we should just use `logrus` everywhere.
But no action was don since then. The cleanup was left for a future.
Unfortunately, because GitLab Runner is one of our biggest projects in
Go, for some people it becomes a source of suggestions of how certain
things should be handled. For example here is a discussion in a new
project that creates a go-based tool for our Serverless integration:
https://gitlab.com/gitlab-org/gitlabktl/merge_requests/9#note_152472275
The most important statement is:
> perhaps we could leave it as is since it is how we are exposing
logrus in the runner project
Because we already know that it should be changed and others start to
look on Runner's code to find good patterns, let's finally cleanup
the `log` aliasing mess.
| Tomasz Maczukin | 2019-03-21 | 1 | -2/+2 |
| * | sed 's/Sirupsen\/logrus/sirupsen\/logrus/g' | Alessio Caiazza | 2018-02-23 | 1 | -1/+1 |
| * | Swap codegangsta for urfave | Zeger-Jan van de Weg | 2017-08-22 | 1 | -1/+1 |
| * | Be strict about code formatting: use go fmt to check that | Kamil Trzcinski | 2015-11-20 | 1 | -4/+4 |
| * | Update command line interface•••- Automatically provide command line options for all structure fields
- Make register expose all options
- Rewrite all other commands to use a new command processing scheme
| Kamil Trzcinski | 2015-08-18 | 1 | -0/+14 |
| * | Use kardianos/service module | Kamil Trzcinski | 2015-03-27 | 1 | -0/+17 |