#!/bin/sh
log "Starting S02-logging..."
log "======================="

#=============================================
# 3) set debug and logging options
#---------------------------------------------

# fate#302166: store y2debug messages and log them on crash
export Y2DEBUGONCRASH=1

if got_kernel_param "debug" ; then
	export Y2MAXLOGSIZE=50000
	export Y2MAXLOGNUM=5
	export Y2DEBUG=1
	log "\tSet YaST2 DEBUG LOG parameters:"
	log "\tMaximum log size:  $Y2MAXLOGSIZE"
	log "\tMaximum log count: $Y2MAXLOGNUM"
	log "\tY2DEBUG: $Y2DEBUG"
fi
