Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
sdibella (prolixpost)
tails
Commits
06c0a964
Commit
06c0a964
authored
Dec 02, 2020
by
anonym
Browse files
Make otr-bot quiet.
Otherwise it will spam our pretty log! It's even too verbose for debug logging, imho.
parent
c71c8eac
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/scripts/otr-bot.py
View file @
06c0a964
...
...
@@ -155,8 +155,6 @@ class OtrBot(slixmpp.ClientXMPP):
if
__name__
==
'__main__'
:
logging
.
basicConfig
(
level
=
logging
.
DEBUG
,
format
=
"%(levelname)-8s %(message)s"
)
parser
=
ArgumentParser
()
parser
.
add_argument
(
"account"
,
help
=
"the user account, given as user@domain"
)
...
...
@@ -172,7 +170,13 @@ if __name__ == '__main__':
default
=
[])
parser
.
add_argument
(
"-l"
,
"--log-file"
,
metavar
=
'LOGFILE'
,
help
=
"Log to file instead of stderr"
)
parser
.
add_argument
(
"-d"
,
"--debug"
,
help
=
"enable debug logging"
,
action
=
"store_const"
,
dest
=
"loglevel"
,
const
=
logging
.
DEBUG
,
default
=
logging
.
FATAL
)
args
=
parser
.
parse_args
()
logging
.
basicConfig
(
level
=
args
.
loglevel
,
format
=
'%(levelname)-8s %(message)s'
)
otr_bot
=
OtrBot
(
args
.
account
,
args
.
password
,
args
.
otr_key_path
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment