Skip to content

Commit

Permalink
0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gpchelkin committed Jun 28, 2017
1 parent 7367cc4 commit 1d7c2eb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
History
=======

0.5.0 (2017-06-28)
------------------

* Big refactor to class-based
* Syslog support
* Some fixes

0.4.0 (2017-06-15)
------------------

Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ Optional
default: empty
- ``DL_DIR``: Parent directory for MP3 download directory, default: ~
(user's home directory)
- ``SYSLOG_ADDRESS``: Syslog server, for example ``logsX.papertrailapp.com:ABCDE``
- ``HOSTNAME``: Hostname to show up in Syslog messages

Running Locally
~~~~~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions scdlbot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ def main():
app_url, app_port, bin_path,
sc_auth_token, store_chat_id, no_clutter_chat_ids, dl_dir)


if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion scdlbot/scdlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
syslog_handler = SysLogHandler(address=(syslog_hostname, syslog_udp_port))
handlers.append(syslog_handler)

logging.basicConfig(format='%(asctime)s {} %(name)s: %(message)s'.format(os.getenv("HOSTNAME", "host")),
logging.basicConfig(format='%(asctime)s {} %(name)s: %(message)s'.format(os.getenv("HOSTNAME", "unknown_host")),
datefmt='%b %d %H:%M:%S',
level=logging.DEBUG, handlers=handlers)
logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 1d7c2eb

Please sign in to comment.