Skip to content

Commit

Permalink
db poll and debug translations, see hechoendrupal/drupal-console#3002
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Whiston committed Dec 11, 2016
1 parent 3e18af6 commit 579b868
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
12 changes: 12 additions & 0 deletions translations/database.log.common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
options:
type: 'Filter events by a specific type'
severity: 'Filter events by a specific level of severity'
user-id: 'Filter events by a specific user id'
messages:
event-id: 'Event ID'
type: Type
date: Date
message: Message
user: User
severity: Severity
invalid-severity: 'Severity type is invalid, filter was ignored'
12 changes: 1 addition & 11 deletions translations/database.log.debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@ description: 'Display current log events for the application'
arguments:
event-id: 'DBLog event ID'
options:
type: 'Filter events by a specific type'
severity: 'Filter events by a specific level of severity'
user-id: 'Filter events by a specific user id'
asc: 'List events in ascending order'
limit: 'Limit results to a specific number'
offset: 'Starting point of a limit'
asc: 'List events in ascending order'
yml: 'Print in a yml style'
messages:
event-id: 'Event ID'
type: Type
date: Date
message: Message
user: User
severity: Severity
invalid-severity: 'Severity type is invalid, filter was ignored'
not-found: 'DBLog event "%s" wasn''t found'
9 changes: 9 additions & 0 deletions translations/database.log.poll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: 'Poll the watchdog and print new log entries every x seconds'
arguments:
duration: 'Duration in seconds which to sleep between database reads'
messages:
warning: |
Do not use in production environments
As this script blocks you are advised to only run it on vm's with multiple cores for performance reasons
Stop this polling mechanism before you clean/truncate the watchdog table!
Quit with ^C

0 comments on commit 579b868

Please sign in to comment.