Browse Source

[REF] profiler: Using same output from brew install pgbadger

pull/1465/head
Moisés López 6 years ago
committed by Enric Tobella
parent
commit
20d43d9c7e
  1. 6
      profiler/models/profiler_profile.py

6
profiler/models/profiler_profile.py

@ -150,7 +150,7 @@ log_hostname=on
log_line_prefix='%t [%p]: [%l-1] db=%d,user=%u ' log_line_prefix='%t [%p]: [%l-1] db=%d,user=%u '
log_connections=on log_connections=on
log_disconnections=on log_disconnections=on
lc_messages='en_US.UTF-8'
lc_messages='C'
log_timezone='UTC' log_timezone='UTC'
Reload configuration using the following query: Reload configuration using the following query:
@ -170,7 +170,7 @@ log_min_error_statement=error
log_duration=off log_duration=off
log_error_verbosity=verbose log_error_verbosity=verbose
log_lock_waits=on log_lock_waits=on
log_statement=none
log_statement='none'
log_temp_files=0 log_temp_files=0
# Or enable logs from PGOPTIONS environment variable before to start odoo # Or enable logs from PGOPTIONS environment variable before to start odoo
@ -179,7 +179,7 @@ export PGOPTIONS="-c log_min_duration_statement=0 \\
-c client_min_messages=notice -c log_min_messages=warning \\ -c client_min_messages=notice -c log_min_messages=warning \\
-c log_min_error_statement=error -c log_connections=on \\ -c log_min_error_statement=error -c log_connections=on \\
-c log_disconnections=on -c log_duration=off -c log_error_verbosity=verbose \\ -c log_disconnections=on -c log_duration=off -c log_error_verbosity=verbose \\
-c log_lock_waits=on -c log_statement=none -c log_temp_files=0"
-c log_lock_waits=on -c log_statement='none' -c log_temp_files=0"
~/odoo_path/odoo-bin ... ~/odoo_path/odoo-bin ...
""" """

Loading…
Cancel
Save