Skip to content

Commit 579b868

Browse files
author
Tom Whiston
committed
db poll and debug translations, see hechoendrupal/drupal-console#3002
1 parent 3e18af6 commit 579b868

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
options:
2+
type: 'Filter events by a specific type'
3+
severity: 'Filter events by a specific level of severity'
4+
user-id: 'Filter events by a specific user id'
5+
messages:
6+
event-id: 'Event ID'
7+
type: Type
8+
date: Date
9+
message: Message
10+
user: User
11+
severity: Severity
12+
invalid-severity: 'Severity type is invalid, filter was ignored'

translations/database.log.debug.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,9 @@ description: 'Display current log events for the application'
22
arguments:
33
event-id: 'DBLog event ID'
44
options:
5-
type: 'Filter events by a specific type'
6-
severity: 'Filter events by a specific level of severity'
7-
user-id: 'Filter events by a specific user id'
85
asc: 'List events in ascending order'
96
limit: 'Limit results to a specific number'
107
offset: 'Starting point of a limit'
11-
asc: 'List events in ascending order'
8+
yml: 'Print in a yml style'
129
messages:
13-
event-id: 'Event ID'
14-
type: Type
15-
date: Date
16-
message: Message
17-
user: User
18-
severity: Severity
19-
invalid-severity: 'Severity type is invalid, filter was ignored'
2010
not-found: 'DBLog event "%s" wasn''t found'

translations/database.log.poll.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
description: 'Poll the watchdog and print new log entries every x seconds'
2+
arguments:
3+
duration: 'Duration in seconds which to sleep between database reads'
4+
messages:
5+
warning: |
6+
Do not use in production environments
7+
As this script blocks you are advised to only run it on vm's with multiple cores for performance reasons
8+
Stop this polling mechanism before you clean/truncate the watchdog table!
9+
Quit with ^C

0 commit comments

Comments
 (0)