reduce loglevel
This commit is contained in:
parent
daa6d7c4b4
commit
c235407378
1 changed files with 4 additions and 4 deletions
|
|
@ -45,8 +45,8 @@ namespace :debshots do
|
|||
|
||||
repositories = Rails.configuration.package_sources
|
||||
Rails.logger = Logger.new(STDOUT)
|
||||
# Rails.logger.level = Logger::INFO
|
||||
Rails.logger.level = Logger::DEBUG
|
||||
Rails.logger.level = Logger::INFO
|
||||
#Rails.logger.level = Logger::DEBUG
|
||||
|
||||
Rails.logger.info "Importing Debian package information"
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ namespace :debshots do
|
|||
else # new package - create it in the database
|
||||
Rails.logger.debug "No such package in our database. Creating one."
|
||||
db_package = Package.new
|
||||
data_has_changed = update_data(package, db_package)
|
||||
update_data(package, db_package)
|
||||
stats_added += 1
|
||||
end
|
||||
|
||||
|
|
@ -171,7 +171,7 @@ namespace :debshots do
|
|||
if db_pkg = Package.find_by(name: pkg[:Package])
|
||||
Rails.logger.info "Updating long description for package #{db_pkg.name}"
|
||||
text = pkg[:'Description-en']
|
||||
short_description, long_description = text.split("\n", 2)
|
||||
_, long_description = text.split("\n", 2)
|
||||
db_pkg.long_description = long_description
|
||||
db_pkg.save
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue