You are not logged in.

#1 2014-01-19 19:59:15

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

uWSGI PHP OwnCloud Flooding Logs

I have searched and searched and for the life of me can not figure out how to set the log level for uWSGI.

uwsgi_php sends to Journald every single GET, POST, everything....

EDIT: Well adding --disable-logging to the EXEC command in uwsgi@.service stops all logs... far from ideal but better then before

~>>> grep log /etc/uwsgi/owncloud.ini | grep -v 'php-allowed-ext'

loglevel = warn

~>>> grep log /etc/nginx/nginx.conf

error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/notice.log  notice;
#error_log  /var/log/nginx/info.log  info;
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    access_log  /var/log/nginx/access.log;

~>>> grep log /usr/share/webapps/owncloud/config/config.php

  'log_type' => 'owncloud',
  'logfile' => '',
  'loglevel' => '2',
  'logdateformat' => 'F d, Y H:i:s',
  'logtimezone' => 'Etc/UTC',
  'log_query' => false,
  'log_authfailip' => false,
  'log_rotate_size' => false,
  'remember_login_cookie_lifetime' => 1296000,

~>>> grep log /etc/php/php.ini

; log_errors
; Error handling and logging ;
; It's recommended that errors be logged on production servers rather than
; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; servers they should still be monitored and logging is a great way to do that.
; http://php.net/log-errors
log_errors = On
; Set maximum length of log_errors. In error_log information about the source is
; http://php.net/log-errors-max-len
log_errors_max_len = 1024
; Do not log repeated messages. Repeated errors must occur in same file on same
; is On you will not log errors with repeated messages from different files or
; stdout or in the log). This has only effect in a debug compile, and if
; When PHP displays or logs an error, it has the capability of formatting the
; http://php.net/error-log
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog
; Disable logging through FastCGI connection. PHP's default behavior is to enable
;fastcgi.logging = 0
; The path to a log file that will log all mail() calls. Log entries include
;mail.log =
; Log mail to syslog (Event Log on NT, not valid in Windows 95).
;mail.log = syslog
; Notice message logging require a little overheads.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://php.net/pgsql.log-notice
pgsql.log_notice = 0
;sybct.login_timeout=
; OPcache error_log file name. Empty string assumes "stderr".
;opcache.error_log=
; All OPcache errors go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
;opcache.log_verbosity_level=1

Last edited by hunterthomson (2014-01-19 20:48:12)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

Board footer

Powered by FluxBB