Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VenJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Đường Sỹ Hoàng
VenJob
Commits
9711ba07
Commit
9711ba07
authored
Dec 06, 2019
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails logger
parent
b9c20920
Pipeline
#251
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
config/environment.rb
+3
-1
lib/tasks/job.rake
+2
-1
No files found.
config/environment.rb
View file @
9711ba07
# Load the Rails application.
# Load the Rails application.
require_relative
'application'
require_relative
"application"
# Initialize the Rails application.
# Initialize the Rails application.
Rails
.
application
.
initialize!
Rails
.
application
.
initialize!
Rails
.
logger
=
Logger
.
new
(
STDOUT
)
config
.
logger
=
ActiveSupport
::
Logger
.
new
(
"log/
#{
Rails
.
env
}
.log"
)
lib/tasks/job.rake
View file @
9711ba07
...
@@ -38,7 +38,8 @@ namespace :job do
...
@@ -38,7 +38,8 @@ namespace :job do
position
=
job_page
.
css
(
"div#showScroll.box2Detail"
).
css
(
"ul.DetailJobNew"
).
css
(
"li.bgLine1"
).
css
(
"p.fl_left"
).
text
position
=
job_page
.
css
(
"div#showScroll.box2Detail"
).
css
(
"ul.DetailJobNew"
).
css
(
"li.bgLine1"
).
css
(
"p.fl_left"
).
text
rescue
rescue
puts
"Skip
#{
link
}
"
logger
=
Rails
.
logger
logger
.
info
"Skip
#{
link
}
"
next
next
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment