Skip to content

Commit

Permalink
Add a warning about incorrect formats for --json-input.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Oct 29, 2012
1 parent f8fe837 commit 593210c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fedmsg/commands/logger.py
Expand Up @@ -86,6 +86,13 @@ def logger(**kwargs):
$ fedmsg-logger --message="This is a message."
$ fedmsg-logger --message='{"a": 1}' --json-input
Note that the python JSON parser is picky about the format of messages if
you're using the --json-input option. Double-quotes must be on the "inside"
of the string and single quotes must be on the outside::
'{"a": 1}' is good.
"{'a': 1}" is bad.
"""

kwargs['active'] = True
Expand Down

0 comments on commit 593210c

Please sign in to comment.