diff options
| author | horus_arch | 2018-02-17 15:22:51 +0100 |
|---|---|---|
| committer | horus_arch | 2018-02-17 15:22:51 +0100 |
| commit | 8a94fd9d4b54e05ecd11ce4bc1fd9b0feb92b239 (patch) | |
| tree | 224cb505fcc05748cc23b131607194c0dfaec8bc /crawler/post_process.go | |
| parent | fc83917d623228b09191f178062e59fad0722795 (diff) | |
| download | alkobote-8a94fd9d4b54e05ecd11ce4bc1fd9b0feb92b239.tar.gz | |
Sets config option to disable url shorter. (crawler)
Diffstat (limited to 'crawler/post_process.go')
| -rw-r--r-- | crawler/post_process.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawler/post_process.go b/crawler/post_process.go index 4688cc8..40845b9 100644 --- a/crawler/post_process.go +++ b/crawler/post_process.go @@ -10,7 +10,13 @@ import ( func (app *App) post_process() error { - return app.short_url() + if app.Config.DisableURLShorter { + log.Debug("post_process.go: URL Shorter is disabled (via config)") + return nil + } else { + return app.short_url() + } + } func (app *App) short_url() error { |
