Fix throw exception and logger call

For some reason we make a small error
while throw exception and print log.
Patch fixes it.

Closes-Bug:1550335

Change-Id: I6f3bd7d9554f9c296c033c89e62c3aaa739295b8
This commit is contained in:
Alexander Kurenyshev 2016-02-26 16:13:06 +03:00
parent 6ae1bb9c64
commit 5bf2a4186a
1 changed files with 2 additions and 2 deletions

4
agent
View File

@ -847,8 +847,8 @@ class NodeAgent
topology[:numa_nodes] << struct
end
topology
rescue e
logger.error "Something went wrong with parsing lstopo: #{e.backtrace}"
rescue => e
@logger.error "Something went wrong with parsing lstopo: #{e.backtrace}"
nil
end