Commit 43bb754b by Owo Sugiana

Tambah log_warning

1 parent 4c2697ca
0.6 2021-11-4
-------------
- Tambah log_warning
- Penggunaan pkgutil agar fleksibel saat pip install -e
0.5.1 2021-5-23
---------------
- Tabel conf dipindahkan ke paket opensipkd-iso8583-bjb.
......
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
import os
import csv
import deform
......
......@@ -86,7 +86,12 @@ class BaseView:
def log_error(self, msg):
prefix = self.log_prefix()
msg = f'{prefix} {msg}'
log.debug(msg)
log.error(msg)
def log_warning(self, msg):
prefix = self.log_prefix()
msg = f'{prefix} {msg}'
log.warning(msg)
# Abstract class. Inherit, please.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!