Browse Source

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
Alexander Kurenyshev 3 years ago
parent
commit
5bf2a4186a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      agent

+ 2
- 2
agent View File

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

Loading…
Cancel
Save