summaryrefslogtreecommitdiffstats
path: root/src/linux
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-08 14:25:00 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-09 11:05:02 +0200
commit73ecb48113eb8d2a37cee89e3481415089867709 (patch)
tree1608a98f2347db2cd9397d5ab1860a6f25559486 /src/linux
parent71b3211d3d64cae19daf7e940516f47bc284450c (diff)
src: log without backtrace in not implemented functions
Don't log a backtrace when a not implemented function is called in ogClient. Log a "Function not implemented" message.
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/ogOperations.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index 63afd12..44684e9 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -9,13 +9,14 @@
import os
import subprocess
from subprocess import CalledProcessError
+from src.log import OgError
from src.ogRest import ThreadState
class OgLinuxOperations:
def _restartBrowser(self, url):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def poweroff(self):
os.system('systemctl poweroff')
@@ -41,25 +42,25 @@ class OgLinuxOperations:
return result.stdout
def session(self, request, ogRest):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def hardware(self, path, ogRest):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def setup(self, request, ogRest):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def image_restore(self, request, ogRest):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def image_create(self, path, request, ogRest):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def cache_delete(self, request, ogRest):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def cache_fetch(self, request, ogRest):
- raise NotImplementedError
+ raise OgError('Function not implemented')
def refresh(self, ogRest):
return {"status": "LINUX"}